Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
50
UltraWebGrid - New rows - Cell editing creeping down page
posted

I am adding rows via JavaScript into an UltraWebGrid with no paging (other than the slider).  While adding new rows within the visible portion of the grid, all appears fine.  Once a new row is added at the bottom of the grid, the new row's cell editing occurs below the grid's frame.  Subsequent row additions cause each new row's cell editing to creep down the page.  Also, the grid's vertical slider is not positioned at the very bottom even though this is the last row.  It is as if the new row's cell editor has a miscalculated vertical offset because of an incorrectly inferred grid height.

I am using CLR3.5 version 10.1 and the grid is nested within a table (for positioning), an UpdatePanel, a ContentPane and (finally) a Master Page.

Any thoughts on how this is happening and how to avoid it?  I have used various combinations of Cell/Row scrollToView() calls to no avail.

Parents
  • 50
    posted

    A little further detai:

    The grid is performing an AfterCellUpdate postback to the server in order to retrieve values for the current row's cells based upon a cell's value entered.  If the postback is not performed, the grid behaves perfectly.  That is, rows are added and the cell's editor is properly positioned within the frame of the grid.  If the postback is allowed to occur (even if the postback performs no operations), rows are added to the grid; however cell editing of the first column creeps down the page as described in the original post -- each subsequent row addition beyond those that fill the visible portion of the grid cause the grid's cell editor to move down the page.

    The callback is necessary in order to retrieve cell values upon data entry.

    Any suggestions, hacks, work-arounds?

Reply Children