Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Populating the Grid using ASP.NET
17/11/2009
09:48
Avatar
MitchellLee
Guest
Guests

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

19/11/2009
06:21
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

20/11/2009
09:33
Avatar
MitchellLee
Guest
Guests

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

21/11/2009
08:20
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

22/11/2009
11:15
Avatar
MitchellLee
Guest
Guests

Thanks for your help Tony

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information