I have to create a data table simmiliar to the http://www.chartle.net/ have.
The most importang feature is :
Is this possible ?
Search getColProp
and setColProp
in their docs: http://www.trirand.com/jqgridwiki/doku.php?id=wiki:methods
The problem is, that you can't dynamically change the jQgrid ColModel. The two options I see are:
Delete the whole grid and reload it with a new ColModel (if it can change entirely) using GridUnload:
jQuery(selector).GridUnload(selector);
Load all possible rows and show/hide the ones you need, e.g. by using the show hide columns plugin
For saving it dynamically it should be sufficient to store the configuration data for the grid in the database as JSON.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With