tags:

views:

25

answers:

0

I have a large grid (about 30 columns and 100 rows) which is placed within a surrounding div that allows the user to scroll vertically and horizontally. I opted for this solution as I could not get the grid to scroll correctly out of the box.

The grid uses cell editing, and is purely client side except when loaded from or persisted to the server. I am using jqGrid version 3.7.1 with ASP MVC2.

My first question is whether there is an easier way to accomplish this (something I missed when setting up the grid)?

Secondly, I have the additional requirement that the column headers and first column (that contains row numbers) should not scroll. I was planning to do this with javascript but maybe there is an easier way (possibly related to my first question)?

Finally, whenever I edit a cell, the scroll position of the surrounding div moves (both horizontally and vertically). Usually this resets the position to 0,0; but it can also sometimes just shift it by a few pixels, with no discernible pattern. Once again this may be related to the way I am using it. Is there something I can do to prevent this?

Many thanks, Nigel.