Forum


09:48

Hi,
I've been testing out the brilliant JQ Grid using ASP.NET and trying not to use MVC or the JQ Grid ASP.NET component.
I've managed to get it working using "PostMethods", where the DataType would be a function. The problem is I cannot get the client-side sorting to work. I have set the "loadonce" flag to "True".
Also, I've noticed that the "loading" doesn't work anymore when using the function "datatype". I've reverted back to the 3.4.4 version, and looks like that functionality as been removed.
Can anyone please help me? It would be greatly appreciated.
With Thanks In Advance
Mitchell
06:21

Moderators
30/10/2007

Hello,
What you mean - client side does not work? Do not understand. If you want this to work correct you should use a sorttype option in colModel.
About loading when datatype function - this is true, and the answer is - we do not know when the request will be finished in case of datatype function. I think this is reasonable approach.
If I can remember right there is solution for this in the forum.
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
09:33

Hi,
Thanks for the reply. I've managed to find solutions to both, but I'm not sure whether it is the correct.
What I was asking in my first question was that I required a solution to have both a client-side sort as well as a normal server-side paging. I could not do both at the same time. My solution was to set the datatype to "local" after a successful ajax post method, as well as implement the onpage event on the grid.
With regards to my second question, I had to hide and show the "lui_grid" and "load_grid" manually. Is there anyway you could add a new routine to implement the above functionality.
By the way, thanks for the great work.
Regards,
Mitchell
08:20

Moderators
30/10/2007

Hello,
About the first there is very good post for this and yes it is possible:
http://www.trirand.com/blog/?p.....mp;ret=all
About the second there is such one but you can:
$(”#load_”+mygridid).show(); // to show or hide it
where mygridid is the id of the grid
in case of using overlay
$(”#lui_”+mygridid).show();
$(”#load_”+mygridid).show();
Hope this helps
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
62 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66