Maintain Scroll position in grid on Call Back
This post has
1
verified answer and
5
replies
Hi All,
I have to retain scroll postion in the grid on call back.
Requirement:
Its an action item grid in which Double Click on any row, the control moves to a new page where I can approve/reject/pending.
On action complete, control comes back to old page.
If selected record found then it has to be highlighted and scroll position has to be maintained.
If selected record not found then previous record has to be highlighted and scroll position has to be maintained
I'm hold the selected row index,data key value in session.
Please help me....
Regards,
Samuel
Verified Answer
ajay
Posted:
Wed Apr 11, 2012 @ 8:36 AM
All Replies
ajay
Posted:
Wed Apr 11, 2012 @ 8:36 AM
Thanks for your reply.
I’m trying to achieve is that the grid will scroll down to where the user last clicked and on going with Grid.scrollTo() option I facing more issue.
That is my grid size is getting reduced.
say if i double click on the last record and on post back i can see only the last record is visible in the grid.
on moving the scroll bar grid size is back to normal.
help me resolving this issue.
Thanks a lot I fixed it... :)
ajay
Posted:
Thu Apr 12, 2012 @ 4:00 AM
Hello,
I am glad your issue is resolved.
Thank you.
Ajay Mishra
Hi Ajay,
I have a scenario here,
In the grid I'm doing a grouping following that expanding a group and double cilck a row ->control moves to new page-> now after the post back event I have to retain scroll postion, grouping and highlight the selected row(double clicked row).
I have to do this in client side.
im using sender.selectByKey() for row selecting, sender.scrollTo() for scroll position and sender.group() for grouping. the thing is im not able to expand the group on postback.
Please help me with a working sample.