tonytomov / jqGrid

jQuery grid plugin
www.trirand.com
2.84k stars 1.2k forks source link

Header offsetting from the current position #1047

Open ishantvivek opened 10 months ago

ishantvivek commented 10 months ago

Hello team,

I am having one issue that when we make columns: sortable:true and we have lots of columns with a scroll bar. On dragging, the selected column moves disproportionate.

Here is the screenshot: image

jqGrid 4.13.4

ishantvivek commented 10 months ago

Note: I debugged the issue a little bit, and I found when we start dragging, it appends left, right and position to the element, however the value for left it is calculating is wrong. This happens only when we have scrolled the grid to right. If scrollbar is at 0, this issue doesn't happen.

parallels999 commented 10 months ago

jqGrid 4.13.4

Current is v5.8.5

ishantvivek commented 10 months ago

@parallels999 The latest version is even a big mess:

image

parallels999 commented 10 months ago

The latest version is even a big mess:

No, you're just too out of date, and you're probably affected by a lot of breaking changes. However, the version you are using is no longer supported. Try to make a working demo, so, someone could check it, look https://jsfiddle.net/690oehLm/

tonytomov commented 10 months ago

The problem you have (from my expierence) is related with inconsistency from colModel and source data. Mostly this is caused with repeatdata : true in jsonReader.

Check your data and colmodel if they are in sync.