Sigma Php Ajax framework, Ajax Components, GUI Builder
July 30, 2010, 09:21:28 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Change in Page Number after saving data  (Read 632 times)
geonetbios
Newbie
*
Posts: 1


View Profile
« on: June 26, 2009, 02:42:04 AM »

Hi Folks
I am newbies with sigma grid experiments
Here I setup a grid with paging and included basic features like add ,Edit and delete
But here I face the problem that whenever I save data or delete data which reloads grid ..
Its ok for database saving
But after saving data the Page comes to first by default
that means after update a record on 23rd page while clicking save I automatically reach into 1st page
Is there any method to solve this problem
Thanks in advance

Regards
Geo  Smiley
Logged
steven
Moderator
Hero Member
*****
Posts: 539



View Profile
« Reply #1 on: July 07, 2009, 01:50:53 AM »

Two options
set
var gridOpt ={
 reloadAfterSave : false
}
to prevent grid reload.

Or do  paging at server side
Logged

Sigma AJAX Data Grid - Easy to Integrate with PHP, ASP Classic, ASP.NET & Java
Sigma PHP Ajax Framework - WYSIWYG GUI Builder With Tree, Grid, Treegrid, Dialog, Tab & More Component
poltoraki
Jr. Member
**
Posts: 5


View Profile
« Reply #2 on: March 03, 2010, 08:03:00 AM »

I would like to have the same functionality, and I set server side paging, it works file.
There is only one thing that I can't figure out: how to post current page number to server with 'reloadAfterSave: true'?
mygrid.reload() post all pageInfo for the current page, but reload caused by 'reloadAfterSave: true' posts pageInfo for page 1.
Please point me in to the right direction.
Thank you very much!
Logged
poltoraki
Jr. Member
**
Posts: 5


View Profile
« Reply #3 on: March 08, 2010, 10:51:09 AM »

steven,
could you please be more detailed how to implement it having pagination on server site already enabled?
Thank you!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!