Home › Forums › Bugs › Drag and Drop shifts grid columns alignment
Hi,
Wondering, is anyone having a similar issue when doing a drag and drop of rows within the grid.
I've noticed this since 3.5 alfa.
Thanks for your response!
I tried the suggestion, which is I believe commenting off the below line of code in the “ui.grid.css”
.ui-jqgrid .ui-jqgrid-btable {table-layout:fixed;}
The drag and drop seems to be fine, but unfortunately the grid column rendering is not in line with the header, even after commenting off the below line in the same CSS file:
.ui-jqgrid .ui-jqgrid-htable {table-layout:fixed;}
-Praveen
In the recent 3.5.beta release there is a new method called:
jQuery(”#mygrid”).updateColumns();
which I believe will sort this issue, if I am right in my understanding.
Need to confirm with Tony.
But when I try to use this method in “gridComplete” event like that of the below:
Hello,
You should use this method in the tablednd when the drag and drop ends. Also see the docs for the tablednd.
Something like if the new column is draged apply updateColumns
Regards
Tony
The updateColumns() needs to be used like that off below:
var mygrid= jQuery(”#list”)[0]; mygrid.updateColumns();
Hi
I fixed the problem this way:
jQuery("#mygrid").tableDnD({
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS