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?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
Sigma Php Ajax framework, Ajax Components, GUI Builder
>
Sigma Grid
>
Sigma Grid - Q&A
(Moderators:
steven
,
gbolanoscruz
) >
Paging Problem in sigma grid
Pages: [
1
]
« previous
next »
Print
Author
Topic: Paging Problem in sigma grid (Read 1001 times)
amit.patel
Jr. Member
Posts: 15
Paging Problem in sigma grid
«
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
Re: Paging Problem in sigma grid
«
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:
// from the grid: // parameters:{"mycustom":"value1"} $json->parameters->mycustom
Logged
amit.patel
Jr. Member
Posts: 15
Re: Paging Problem in sigma grid
«
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
Re: Paging Problem in sigma grid
«
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
Re: Paging Problem in sigma grid
«
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
Re: Paging Problem in sigma grid
«
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.
var mygridinstance1 = new Sigma.Grid(gridOption); var mygridinstance1.pageSize = "new val";
Logged
amit.patel
Jr. Member
Posts: 15
Re: Paging Problem in sigma grid
«
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
missing ; before statement (?)()sales# (line 511) [Break on this error] var mygridinstance1.pageSize = "139";\n
I am using same code as you write in above
Any Help will be great....
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News & Announcements
-----------------------------
Sigma Visual GUI Builder & Library
-----------------------------
=> Sigma Visual - Knowledge Share
=> Sigma Visual - Q&A
=> Bug Report & Wishlist
-----------------------------
Sigma Grid
-----------------------------
=> Sigma Grid - Q&A
=> Show Case
=> Bug Report & Wishlist
-----------------------------
Other
-----------------------------
=> AJAX & JavaScript
Loading...