Forum


14:43

20/03/2009

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
12:57

Moderators
30/10/2007

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.
08:43

20/03/2009

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' });
});
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66