jQgrid - Getting issue after moving first column column(td) at last of grid
Asked Answered
T

1

1

I have issue with jQgrid moving first column(multiselect checkbox) at last as given in this answer by oleg.

Issue: after select and delete the row the grid column is mis-aligned with header column.

So, how can i manage it??

Teletype answered 27/5, 2016 at 11:19 Comment(0)
O
1

The old answer, which you reference is very old (4.5 years ago). There are now two main forks of jqGrid: free jqGrid, which I develop and provide under the same MIT / GNU GPLv2 licenses like it was before and the commercial Guriddo jqGrid JS available under the prices. I implemented many new features in free jqGrid.

The implementation of multiselect feature is rewritten. The old code of jqGrid contained many placed where the multiselect column "cb" must exist and to be at the beginning of the grid. For example, free jqGrid have new option multiselectPosition: "left". You can use multiselectPosition: "right" to change the position of multiselect column. Additionally one can use remapColumnsByName (see the answer) or remapColumns to change the position of "cb" column (the column with multiselect checkboxes) and place it on any place in the grid. The main code of jqGrid is not depend on the position of the column and any place of the column is supported. One can specify any other value of multiselectPosition, for example, multiselectPosition: "none" (see the feature list, implemented in free jqGrid 4.9.0). It will create grid with multiselect functionality whithout any multiselect column at all.

There are many other option, like multiPageSelection: true, which can be very practical too (see the demo from the answer). Moreover one can use hasMultiselectCheckBox callback to specify that multiselect checkbox should be created only in some specific rows of the grid instead of the default creating the checkbox in all rows.

Olympium answered 27/5, 2016 at 11:50 Comment(2)
Thanks for your answer Oleg. The library of jQgrid which i was work on have version 4.5.2. right now i can not able to replace because of may be it impact many place overall. So any suggestion to do some trick in it. If not then no vary :). And again Thanks I'll will try on this new version of jQgrid...Teletype
@Draval: You are welcome! I see no way to solve the problems, which you report in the old 4.5.2. I recommend you to try to replace (temporary for the test) URLs to jqGrid files (to change 3 lines of your HTML code) to the URLs from CDN described in the wiki. You will see whether you really have some compatibility issues or it's just a theoretical possibility. In any way the version 4.5.2 is dead. I use 4.x.y as version numbers (currently 4.13.3) because I try to hold compatibility with old 4.x.y versions.Olympium

© 2022 - 2024 — McMap. All rights reserved.