Forum


18:47

25/06/2009

I am trying to plug the json data into multiple tabbed interface, and have it display different columns on each tab (which could be just a different link to jQuery initialization or some filter within jqGrid), but can't figure out how to do this.
Initial data will all be loaded at once (in 50+ columns) and I'll have it display about 10 columns per tab/section, but I'd rather not make another json call to fetch the data when switching between tabs, and was wondering if there is a way to just hide the columns I don't want to see on one tab, and then on the next one I hide the columns from the first tab and all other tabs and only show the data relevant to that tab without going through a json query?
Or even if I have to go through json, an easy suggestion/way to do that tab/data switching?
11:39

Moderators
30/10/2007

Hello,
You can try first to load the response in array (not using jqGrid) and then for every grid set datatype:local agin with addRowData to load the neede data. Of course every grid can have diffrent coulms
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.
12:35

25/06/2009

I keep getting "invalid object initializer" errors when trying to add data manually into the array and such...
Tony, do you have any documentation on this - inserting data via addRowData, sample code that actually works, and how to assign the custom data (with or without name array values, etc)?
I can't seem to figure it out while playing around with the code here...
02:23

Moderators
30/10/2007

Hello,
Do you have look into the exmples?
Loading Data -> Array Data - this is the first item in the tree demo 😉
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:
138 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