Hi,
After rebinding data to the webgrid, I reselect a row and use ScrollCellIntoView method to bring the row into view. If the row is outside visible boundaries, the scrollbar is positioned in such a manner that the selected row is just about visible in the bottom of the visible area. This could be a result of the visible grid area is not an exact multiple of row height. Is it possible to control the behavior so that the selected row could be positioned in the middle of the grid viewport (depending on the number additional rows that follow.)? Or at least show the complete row.
Is it possible to restore the scrollbar position to the value prior to update of the data source? Basically, I refresh the grid just to update the row that has been modified via a popup window.
Regards
Thanks
Hello,
Currently, there is no way to specify where the row will be positioned. If you use ScrollCellIntoView, you will get the row either at the top or at the bottom of the viewport of the XamWebGrid, depending on which row/cell you are requesting. It should be fully visible and not partially visible. Are you saying that when you call ScrollCellIntoView, the row/cell is partially visible?
Regarding going back to the old scroll position. There is not way of achieving this as well at this moment. You may want to submit a feature reuqest for this on the link below:
http://devcenter.infragistics.com/Protected/RequestFeature.aspx
Yes. The row is only partially visible. If I click on the partial row, the scrollbar is automatically adjusted and the entire row becomes visible.
Babu
Hello Babu,
This is not expected behavior. I had a quick word with the QA Team and there was an issue for this but it is resolved with the Release version. We are not able to reproduce this and if you can do this behavior with the release version, please attach a small sample with this behavior so that we can look into it.
Hi Alex,
I am using the release version 9.1.20091.1006.
I will try and setup a sample ASAP.