Category / Section
How to restrict the circular effect in the GridComboBoxColumn when using touch screen?
1 min read
In the SfDataGrid, the GridComboBoxColumn loads the ComboBox as its edit element. The ComboBox loads the ItemsPanel as the CarouselPanel in WinRT, by default. So, infinite loop occurs when scrolling the ComboBox items. You can overcome this by changing the ItemsPanel of the ComboBox as the StackPanel, as mentioned in the following MSDN link:
The following code example illustrates the ItemsPanel of the ComboBox that is changed to StackPanel.
XAML
<Style TargetType="ComboBox"> <Style.Setters> <Setter Property="ItemsPanel"> <Setter.Value> <ItemsPanelTemplate> <StackPanel /> </ItemsPanelTemplate> </Setter.Value> </Setter> </Style.Setters> </Style>
Sample Link:
WinRT: https://www.syncfusion.com/downloads/support/directtrac/139091/ze/WinRT1790494015