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
Filling jqGrid parameters like colModel per ajax
12/04/2011
19:27
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hi Tony,

I read frequently, that users need to have more information of jqGrid loaded per ajax from the server. There are some typical examples:

1) one have some known columns and some columns with the same template, but different number of columns. see this and this examples. From the AJAX input one can define the real current number of columns abd fill the grid. Having addColumn and removeColumn functions could solve the problem.

2) one need to get the information about the order of columns, about which columns will be hidden and probably about the width of the column from the server. It can be interpret as a form of grid personalization. The information can be solved for example by extending the server response with the information. Currently it can be implemented with respect of userData, but the user have to implement many things manually.

3) One want to load colModel and colNames from the server per ajax. In some situations one need to manage more server parameters from the server (grid height, width and so on). Currently one get separate $.ajax call and then create jqGrid with the data returned from the server. One has already cellurl, editurl, subGridUrl and more in the jqGrid. One can introduce one more url which will be used to load important information to create jqGrid and inside of success handler fill the jqGrid. One can compare this with dataUrl use to build select elements used for editing or searching.

What do you think about extending jqGrid possibilities for some of this cases?

Best regards
Oleg 

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
36 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