Thank you this works great!
Thanks Will! That makes sense.
Just having the event done on checkbox check and uncheck and drag – would be helpful we are using a custom function to save grid state
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
saveGridState: function(gridObj,pk,perm) { var colModel = gridObj.jqGrid('getGridParam', 'colModel'), i, l = colModel.length, colItem, cmName, postData = gridObj.jqGrid('getGridParam', 'postData'), columnsState = { search: gridObj.jqGrid('getGridParam', 'search'), page: gridObj.jqGrid('getGridParam', 'page'), sortname: gridObj.jqGrid('getGridParam', 'sortname'), sortorder: gridObj.jqGrid('getGridParam', 'sortorder'), permutation: perm, colStates: {} }, colStates = columnsState.colStates; if (typeof (postData.filters) !== 'undefined') { columnsState.filters = postData.filters; } for (i = 0; i < l; i++) { colItem = colModel<em class="d4pbbc-italic"></em>; cmName = colItem.name; if (cmName !== 'rn' && cmName !== 'cb' && cmName !== 'subgrid') { colStates[cmName] = { width: colItem.width, hidden: colItem.hidden }; } } //save columnState to local storage }, //end saveGridState |
so in the event we can get the permutations by calling
var perm = myGrid[0].p.remapColumns
Thank you for adding this!
colMenuDragDone is only called if the user reorders the columns, using drag Also needs to be called when users checks/unchecks the columns as well.
It would be better if the event is renamed to colMenuColumnDone
Also, it is possible to open a columns in column menu – programatically via button?
Thank you for the info, we will try resizeGrid.
We are essentially using the column chooser plugin – when the add.remove columns or change the order of columns – on clicking done there is done event – it returns the column order
What we want to do is move to use the column menu, since columns is already built in the column to show/hide and drag to re-order – what I am looking for a done event like the column chooser in colmenu > columns
Hope this makes sense
Thanks! everything is working now
better yet
href=’javascript:void(0)’
Thank you for fixing this
another thing – clicking on the column triggers to load web root
|
1 2 3 |
if(ts.p.colMenu && tmpcm.colmenu) { thead += "<a class='colmenu' href='#/'><span class='colmenuspan "+iconbase+' '+colmenustyle.icon_menu+"'></span></a>"; } |
href=’#/’ — -should be href=”#”
jQuery.jqGrid.js Line 3420
if($(this).attr(“value”) === ‘columns’) {
Hi Tony,
Really appreciate quick turn around on the feature. We will test this as soon as possible.
Thanks,
Kris
Any progress on this? we will happy to beta test. We are desperate need of this feature
Kris
Guriddo customer
Thank you for clarification, that makes sense.
we had some old code that was not executing in after edit cell that was using the id of input element
$("#" + rowid + '_dblCommissionPercent')
However if you look at the example link click the first row – commission percent cell you will notice input id does not match the pattern (rowid + _colname). rowid is 4 and input id is 1_dblCommissionPercent
I understand about the get cell method. just want to why this has changed since your answer suggests otherwise
Kris
Guriddo Customer
any info or feedback on this?
I have tried setting the kye:true – no effect.
getDataIds returns the correct ids
Here’s a link to the problem
http://50.53.76.235:90/jqgrid/intRowIDIssue.php
Click on cell to edit, examine the html of input tag
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top