ParamQuery Grid
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Grid (free version)
»
How to display newly added row at the bottom of the current displaying page.
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to display newly added row at the bottom of the current displaying page. (Read 2796 times)
suresh
Newbie
Posts: 2
How to display newly added row at the bottom of the current displaying page.
«
on:
January 23, 2015, 02:47:26 am »
Hi sir,
I am able add a row with a form submission at the end of the grid after a refresh of the grid. If the grid contains large set of rows, then after scrolling to the end of the grid only i can see the newly saved row.
But I need to add the newly added row at the end of currently showing grid page. is there any chance to do this? please help me
Thank you sir.
Logged
paramvir
Administrator
Hero Member
Posts: 6310
Re: How to display newly added row at the bottom of the current displaying page.
«
Reply #1 on:
January 23, 2015, 07:59:33 pm »
use array.splice method instead of push to add new row.
http://www.w3schools.com/jsref/jsref_splice.asp
you can get the index of last displayed row in viewport from finalPos parameter of beforeTableView event.
http://paramquery.com/api#event-beforeTableView
Logged
suresh
Newbie
Posts: 2
Re: How to display newly added row at the bottom of the current displaying page.
«
Reply #2 on:
January 28, 2015, 11:12:12 pm »
Thank you for your valuable reply sir,
I have another problem,
When i use refresh or refreshDataandView - Ajax call is getting fired again while using remote option.
How to update the grid without the Ajax call again, after changing the the data .
Logged
Print
Pages: [
1
]
« previous
next »
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Grid (free version)
»
How to display newly added row at the bottom of the current displaying page.