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
Tabbed browsing = loading different columns/data... possible?
25/06/2009
18:47
Avatar
Crazy Serb
Member
Members
Forum Posts: 6
Member Since:
25/06/2009
sp_UserOfflineSmall Offline

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?

27/06/2009
11:39
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

27/06/2009
12:25
Avatar
Crazy Serb
Member
Members
Forum Posts: 6
Member Since:
25/06/2009
sp_UserOfflineSmall Offline

aaahhh... so it doesn't query the data through a json call but through a local array?

hmm... interesting... let me play with that a bit, see how far I get.

29/06/2009
12:35
Avatar
Crazy Serb
Member
Members
Forum Posts: 6
Member Since:
25/06/2009
sp_UserOfflineSmall Offline

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/07/2009
02:23
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

Forum Timezone: Europe/Sofia

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

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information