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.
Unfortunately, activation email could not send to your email. Please try again.

sfDataGrid Scroll Trouble

Thread ID:

Created:

Updated:

Platform:

Replies:

123292 Mar 3,2016 02:23 PM Mar 4,2016 01:25 AM WPF 1
loading
Tags: SfDataGrid
Maxim Antonov
Asked On March 3, 2016 02:23 PM

I have problems with understanding syncfusion library for wpf. More specifically, it's about sfDataGrid control. This control is inside standard WPF ScrollView control. So, the problem is, whenever I hover sfDataGrid, it takes scroll events and the scroll itself is not working. So what's the problem? What's the best solution?

Thangapriya V [Syncfusion]
Replied On March 4, 2016 01:25 AM

Hi Maxim,
Thank you for using Syncfusion Products.
We have analyzed your query. SfDataGrid has its own ScrollViewer. So it is not recommended to load the SfDataGrid inside the ScrollViewer as it provides infinite size to its children which leads to lose of UI virtualization. While loading SfDataGrid inside ScrollViewer, the SfDataGrid’s ScollViewer gets disabled. However, you can overcome this by setting the height of SfDataGrid while loading inside the ScollViewer.

Code Example:


<ScrollViewer>

     <Syncfusion:SfDataGrid x:Name="dataGrid"

                            Height="600"

                            AutoGenerateColumns="True"

                            ItemsSource="{Binding Source}" />       

</ScrollViewer>


Regards,
Thangapriya

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.

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.

;