Hi Will,
Thank you! The fix is working great for us. Very much appreciated, and glad to provide the test case.
Best,
Walter
Will,
Thank you! It’s working great now. Glad to provide an example next time, I wasn’t sure if this was a bug, happy to see it fixed.
Walter
Hi Will,
Thanks for the reply. I can’t get the afterSetGrid option to work (even with just an alert box), but this works fine:
|
1 2 |
$.jgrid.loadState('gridName'); $('gridName').trigger('reloadGrid',[{current: true}]).trigger('resize'); |
The other issue I’m having is that after loadState, I’ve lost the icons on the left part of my pager, which are reload, column chooser, and advanced search. Do I need to rebuild those after reloading the grid? They’re gone even before executing the trigger above, so after loadState.
Thanks again,
Walter
Sorry, I’ll try this again…my divs got embedded…
In 2) the table names change from
|
1 |
<div></div> |
to
|
1 2 3 4 5 |
<div></per> after a loadState. To use debug, use: <pre>.jgrid.saveState("gridName", {debug: true}); |
-- then add:
|
1 |
<div>Debug:</div> |
to you page, and you'll get an option to download a text file with the grid state when you run the saveState method.
That is it!!! It’s perfect for names (like your demo) and addresses. I can try to build this in pure JS, or if you have time, Tony, to port it over, very much appreciated!
Best,
Walter Hardy / San Francisco
Thanks, but grouping headers is not it. I thought I saw a demo where you can have regular columns, but then the cell data can span the columns. As an example, here the data spans 3 columns:
| City | State | Zip |
|San Francisco, CA 94102 |
|Boston, MA 12110 |
You can still click on any column header to sort on that field.
Thanks again,
Walter
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top