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
Change grid parameters later
20/03/2009
14:43
Avatar
jbowles
New Member
Members
Forum Posts: 2
Member Since:
20/03/2009
sp_UserOfflineSmall Offline

I am creating a grid with tableToGrid("#myTable").

I don't see any way to change the grid parameters afterward.  For example, I would like the grid caption to change depending on the data displayed.

This is just one example - I would like to know how to access all of the other parameters as well.

I've searched the docs and the examples, please be kind if I missed something!

Thanks,

Jeff

21/03/2009
12:57
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

The function can be extended. You can pass to the function additional parameter - where the grid properties can be extended.

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.

23/03/2009
08:43
Avatar
jbowles
New Member
Members
Forum Posts: 2
Member Since:
20/03/2009
sp_UserOfflineSmall Offline

Tony,

Thanks for the reply.  Unfortunately, I'm new to jquery and I still don't understand.  Could you please tell me how to, for example, add the caption "Hello World" to a grid created with the TableToGrid function?  Here's one of the things I tried, which produced a grid, but no caption.

Regards,

Jeff

$(document).ready(function() {
    tableToGrid("#ProgressGrid");
    $("#ProgressGrid").jqGrid({ caption: 'hello world' });
});

 

23/03/2009
19:05
Avatar
decodeideas
Member
Members
Forum Posts: 6
Member Since:
24/03/2009
sp_UserOfflineSmall Offline

You should use setGridParam.

$(document).ready(function() {
    tableToGrid(”#ProgressGrid”);
    $(”#ProgressGrid”).setGridParam({ caption: 'hello world' });
});

Marius

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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