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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Problems with horizontal scrollbar in SfDataGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

147405 Sep 9,2019 07:29 PM UTC Sep 28,2020 01:52 PM UTC WPF 3
loading
Tags: SfDataGrid
Tech Shop
Asked On September 9, 2019 07:29 PM UTC

Good afternoon

Am I having trouble enabling and making a SfDataGrid scrollbar work? As I couldn't find it in the documentation and my Google searches, I started trying several things, such as:

ScrollViewer.HorizontalScrollBarVisibility = "Visible"
ScrollViewer.VerticalScrollBarVisibility = "Auto"
ScrollViewer.IsDeferredScrollingEnabled = "True"
ScrollViewer.CanContentScroll = "True" SelectiveScrollingGrid.SelectiveScrollingOrientation = "Horizontal"

The scrollbar even appears, but is disabled. The data in the columns is large and is being cut. That's why I need the horizontal scroll. Only the vertical scrollbar works.

See in the picture.


Attachment: SfDataGrid_58beeecf.rar

Susmitha Sundar [Syncfusion]
Replied On September 10, 2019 07:24 AM UTC

Hi Tech,   
    
Thank you for contacting Syncfusion support.   
    
We have checked the reported issue “Horizontal scrollbar disable in SfDataGrid” and we are unable to replicate the issue from our end. We have prepared a sample for your reference.   
    
    
If the DataGrid size is greater than view size, scroll bar automatically appears. DataGrid does not need any properties to enable the scrollbars.   
    
Please check the above sample and let us know if you still facing the same issue? If not, please modify the sample based on your scenario which will be helpful for us to check and provide you with the solution.     
    
Regards,   
Susmitha S  


Adham Borhanzehi
Replied On September 26, 2020 08:08 AM UTC

If you have frozen columns and the width of columns are more than view width you can't see the horizontal scroll bar. 

Vijayarasan Sivanandham [Syncfusion]
Replied On September 28, 2020 01:52 PM UTC

Hi Adham Borhanzehi,

Thanks for update.

Yes. As you told in the previous update this is the expected behavior of the frozen columns in SfDataGrid. As the behavior of the frozen column is to freeze in view at the left side and restrict scrolling for those columns, if you resized the frozen column beyond the size of the view, the scrollbar will be hidden to avoid scrolling for the frozen column. 

Regards,
Vijayarasan S


CONFIRMATION

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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon