Articles in this section
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:

https://social.msdn.microsoft.com/Forums/windowsapps/en-US/00807f53-8163-409a-ae84-1f30fb1a5238/revolving-combobox-how-do-i-make-a-combobox-not-loop-around-the-items?forum=winappswithcsharp

 

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

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied