RadListBox Extended SelectionMode

3 posts, 1 answers
  1. Steve
    Steve avatar
    124 posts
    Member since:
    Jun 2011

    Posted 18 Jul 2013 Link to this post

    Hello,
    I have set the SelectionMode="Extended" on my RadListBox; however the behavior identical to "Multiple", whereas Shift and Ctrl have no effect.  Below is my Xaml...

    <telerik:RadListBox ItemsSource="{Binding MasterViewModel.ElementTypeCollectionView}"
                        Margin="3"
                        BorderThickness="0"
                        SelectionMode="Extended">
        <telerik:RadListBox.ItemTemplate>
            <DataTemplate>
                <CheckBox Checked="CheckBox_Checked"
                          IsChecked="{Binding RelativeSource={RelativeSource AncestorType={x:Type telerik:RadListBoxItem}}, Path=IsSelected}">
                    <CheckBox.Content>
                        <TextBlock>
                            <TextBlock.Text>
                                <MultiBinding StringFormat="{}{0}  {1}">
                                    <Binding Path="ElementTypeCode" />
                                    <Binding Path="Description" />
                                </MultiBinding>
                            </TextBlock.Text>
                        </TextBlock>
                    </CheckBox.Content>
                </CheckBox>
            </DataTemplate>
        </telerik:RadListBox.ItemTemplate>
    </telerik:RadListBox>

    Is this a known bug or am I missing something?

    Thanks in advance,
    Steve



  2. Answer
    Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 23 Jul 2013 Link to this post

    Hi Steve,

    The RadListBox SelectionModes are identical to the regular ListBox SelectionModes, when set to Multiple every item is added to the selection just on click and when set to Extended the items are added on click plus Ctrl/Shift. Could you please provide us with more detailed information about the exact use case and the required selection behavior of RadListBox?

    I'm looking forward to your response.

    Regards,
    Kalin
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Steve
    Steve avatar
    124 posts
    Member since:
    Jun 2011

    Posted 23 Jul 2013 Link to this post

    My error.  I thought the extended mode was to work like the Windows Explorer list view when in detail view. 
    Thanks for your response,
    Steve
Back to Top