Declined
Last Updated: 10 Feb 2020 13:19 by ADMIN
wu
Created on: 13 Jan 2020 08:51
Category: UI for WPF
Type: Bug Report
1
when click RadListBoxItem in group mode,the scrollview auto scroll up and down.

using GroupStyle ,and setting : ScrollViewer.CanContentScroll="False",when click the item,
within the group,the ScrollViewer auto scroll up and down,don't using VirtualizingPanel.
but the microsoft ListBox is OK!

 the code like the follwoing:
    <telerik:RadListBox Width="250" ItemsSource="{Binding Data.View}" SelectionMode="Single"
                            ItemTemplate="{StaticResource ListBoxTemplate}"
                            ScrollViewer.CanContentScroll="False">
                    <telerik:RadListBox.GroupStyle>
                    <GroupStyle>
                        <GroupStyle.ContainerStyle>
                            <Style TargetType="{x:Type GroupItem}">
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate TargetType="{x:Type GroupItem}">
                                            <Expander IsExpanded="True"
                                           ExpandDirection="Down">
                                                <Expander.Header>
                                                    <StackPanel Orientation="Horizontal">
                                                        <TextBlock Text="{Binding Path=Name}"
                                                        VerticalAlignment="Center" />
                                                        <TextBlock Text="{Binding Path=ItemCount, StringFormat=Count:{0}}"
                                                        VerticalAlignment="Center"
                                                        Margin="5,0,0,0" />
                                                    </StackPanel>
                                                </Expander.Header>
                                                <ItemsPresenter />
                                            </Expander>
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                        </GroupStyle.ContainerStyle>
                    </GroupStyle>
                </telerik:RadListBox.GroupStyle>
            </telerik:RadListBox>

3 comments
ADMIN
Dilyan Traykov
Posted on: 10 Feb 2020 13:19

Hello wu,

I will proceed with closing this bug report as a considerable amount of time has passed since my last reply, but if you find the need to reopen it in the future, please feel free to do so.

Regards,
Dilyan Traykov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
ADMIN
Dilyan Traykov
Posted on: 20 Jan 2020 15:29

Hello wu,

After further investigation, I traced the issue to the following bug report in our feedback portal: RadListbox is not able to scroll to item when the items are grouped.

As stated in the item, this issue can be solved by setting the new IsScrollIntoViewEnabled property to False.

Please give this a try and let me know how it goes.

Regards,
Dilyan Traykov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
ADMIN
Dilyan Traykov
Posted on: 17 Jan 2020 16:03

Hello wu,

Thank you very much for the provided code snippet.

I can confirm that I was able to replicate the undesired behavior at my end but will need a little more time to investigate its exact cause. 

I will let you know as soon as I have more information on the matter, most probably at the beginning of next week.

Regards,
Dilyan Traykov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.