Sigma Php Ajax framework, Ajax Components, GUI Builder
May 21, 2012, 08:24:27 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: Paging Problem in sigma grid  (Read 1001 times)
amit.patel
Jr. Member
**
Posts: 15


View Profile
« on: February 13, 2009, 04:47:40 AM »

Hello all
       Now i want to know is it possible to post data from server side when we click on paging button i.e next,previous,first,last. Means in load url we get Page num as json string but i want to also pass some extra parameter so how can i pass this extra parameters. As i used "parameters":{} but it doesn't change the value of parameter . It's give value only when we refresh the page.
     
     So i want to get the extra parameter's value on server side when i click on paging button for my sql query? so how it is possible.Waiting for your reply.

Thanks and regards,
---Amit Patel
Logged
humi
Hero Member
*****
Posts: 284


View Profile
« Reply #1 on: February 13, 2009, 06:09:31 AM »

I am confused which direction you wish to post the information?

Server - > Client
or
Client -> Server?

in controller.php:
Logged
amit.patel
Jr. Member
**
Posts: 15


View Profile
« Reply #2 on: February 14, 2009, 02:24:56 AM »

Thanks humi
I want to post some data  in server side  which will change dynamically when user  click on some input field in html page .I want to get extra field in server side when user click paging button.....


Logged
humi
Hero Member
*****
Posts: 284


View Profile
« Reply #3 on: February 14, 2009, 10:24:25 AM »

Server -> Client

I dont think it is possible right now to get additional parameters from the server without adding it manually into the grid_all.js file

http://www.sigmawidgets.com/products/sigma_grid2/docs/dataexchange.html#Loading
Logged
amit.patel
Jr. Member
**
Posts: 15


View Profile
« Reply #4 on: February 16, 2009, 04:08:57 AM »

Hello All
Is it Possible to change pageSize value dynamically using ajax. Means when user submit a form according to  the form criteria the result is generated from database and all this result display in grid using setContent function but the form is submitted using ajax so problem is that whole page is not reloaded only data is loaded so how to change pageSize dynamically according to the data. I passed pagesize in json format when data is loaded in setContent function but the pageSize is not changed.

Any Help.....

Logged
humi
Hero Member
*****
Posts: 284


View Profile
« Reply #5 on: February 16, 2009, 05:25:15 AM »

The variable is available to be changed, but the grid will not be changed unless it is rebuild or refreshed.

Logged
amit.patel
Jr. Member
**
Posts: 15


View Profile
« Reply #6 on: February 16, 2009, 09:41:44 PM »

Thanks Humi
But when i used above code then i got some javascript error like this



I am using same code as you write in above

Any Help will be great....

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!