We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Ho to maintian GridGroupingControl vertical scroll-bar position on postback

Thread ID:





104648 Aug 6,2012 08:34 AM UTC Aug 6,2012 12:25 PM UTC ASP.NET Web Forms (Classic) 1
Tags: Grouping
Assaf Magen
Asked On August 6, 2012 08:34 AM UTC


In my GridGropingControl  I have a vertical scroll  and I'm using  PostBackOnFocusedChanged="True"  so I can perform some server side operations on the OnSelectedRecordsChanged event.
My problem is that the GridGropingControl  scroll bar returns to the top after the OnSelectedRecordsChanged event and the user needs to manually scroll down to find his selection.

How can I maintain the vertical scroll-bar position after postback?


Kalaiarasan B [Syncfusion]
Replied On August 6, 2012 12:25 PM UTC

Hi Assaf,

 You can handle the VScrollBar.ValueChanged event of the grid, in which you can get the current scroll position through the GetCurrentVScrollPixelPos() method. This event gets triggered, whenever the pixelvalue changes for the vertical scrollbar. You can also get the total height of the rows in pixel (or) the maximum pixel value through the GetVScrollPixelHeight() method and through the GetVScrollPixelMinimum() for minimum.

 Please make sure you have set the below properties,

 this.gridGroupingControl.TableControl.VScrollPixel = true;

this.gridGroupingControl.TableControl.VScrollBehavior = GridScrollbarMode.Automatic | GridScrollbarMode.AutoScroll;

 Let me know if you need any further help.




This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon