Cocowalla
Cocowalla

Reputation: 14340

Scrolling jumps when clicking jqGrid cell

I have a jqGrid setup that is rather wide, so it the horizontal scrollbar is visible.

Problem is, when scrolling to the right and clicking on a cell, the scrollbar jumps all the way back to the left.

Any ideas why this is happening and how I can prevent it?

Upvotes: 2

Views: 832

Answers (1)

Suganya K
Suganya K

Reputation: 11

I have the same issue with jqGrid4.1.2 After tried so many ways, I found the solution

After making the grid, please do the following things:

  1. Call GridNav function of jqGrid jQuery('#id').jqGrid('GridNav');
  2. Then add postion of gridId_kn element's parent attribute : position:fixed set if position is not added already jQuery('#id_kn').parent().attr("style", style+"position:fixed");

Upvotes: 1

Related Questions