Sigma Php Ajax framework, Ajax Components, GUI Builder
February 11, 2012, 11:31:45 PM *
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 2165 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: 546



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
rymca
Newbie
*
Posts: 1


View Profile
« Reply #4 on: August 15, 2010, 12:14:21 PM »

I have the same problem with paging at server side.
Can you help me?
Logged
steven
Moderator
Hero Member
*****
Posts: 546



View Profile
« Reply #5 on: August 23, 2010, 02:56:52 AM »

why not check back end samples here http://www.sigmawidgets.com/download.html
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
tian.yu5
Newbie
*
Posts: 2


View Profile
« Reply #6 on: January 04, 2011, 05:18:17 PM »

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!


Having the same problem, beforeLoad does not work. I'm going to find a workaround.Does anyone have some suggestions by the way
Logged
prabhuraj
Full Member
***
Posts: 26


View Profile
« Reply #7 on: March 12, 2011, 04:07:09 AM »


is there any way other than reloadAfterSave : false,


even we use server side paging after save action the pages comes to 1st page.


my php code



$data = json_encode($retArray);
  $ret = "{data:" . $data .",\n";
  $ret .= "pageInfo:{totalRowNum:" . $totalRec . ",pageNum:".$pageNo."},\n";
  $ret .= "recordType : 'object'}";
  echo $ret;


 so can u post acomplte code of js and php

thk u
Logged
hilton
Newbie
*
Posts: 1


View Profile WWW
« Reply #8 on: May 20, 2011, 07:36:06 AM »

change ip
hide ip
vpn
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!