RadTreeView is applying multiple selection when left-mouse button is down?

3 posts, 1 answers
  1. Adnan
    Adnan avatar
    7 posts
    Member since:
    Sep 2013

    Posted 02 Aug Link to this post

    I upgraded my Telerik version from 2014.1.331.45 to 2016.2.606.45. RadTreeView Multiple selection mode was working just fine with the older version, multiple selection is applied only when using Ctrl and/or Shift key (as expected). But after upgrading, RadTreeView is applying multiple selection without clicking Ctrl or Shift key, which is strange. The code is the same before and after upgrading:

    <telerik:RadTreeView x:Name="lstVariables" Padding="5" BorderThickness="0" Grid.Row="0" ScrollViewer.CanContentScroll="False" IsEditable="True" SelectionMode="Multiple" ItemsSource="{Binding LstAppDataSeriesGrouping}" IsDropPreviewLineEnabled="False" IsDragPreviewEnabled="True" IsDragTooltipEnabled="False"  telerik:TreeViewSettings.DragDropExecutionMode="New" IsLineEnabled="True" IsSingleExpandPath="False" IsExpandOnSingleClickEnabled="True" IsDragDropEnabled="True"
    KeyDown="lstVariables_KeyDown" ItemTemplateSelector="{StaticResource ItemDataTemplateSelector}">
                                <telerik:RadContextMenu.ContextMenu>
                                    <telerik:RadContextMenu x:Name="radContextMenu"  Opened="radContextMenuBasic_Opened">
                                        <telerik:RadMenuItem x:Name="mnuEditVariableBasic" Height="23" Header="{Lang:LangCheck Edit}" Click="EditBasicVariable_Click">
                                            <telerik:RadMenuItem.Icon>
                                                <Image Source="{DynamicResource editseries}"/>
                                            </telerik:RadMenuItem.Icon>
                                        </telerik:RadMenuItem>
                                        <telerik:RadMenuItem x:Name="mnuDelete" Height="23" Header="{Lang:LangCheck Delete}" Click="mnuDeleteBasic_Click">
                                            <telerik:RadMenuItem.Icon>
                                                <Image Source="{DynamicResource delete}"/>
                                            </telerik:RadMenuItem.Icon>
                                        </telerik:RadMenuItem>
                                        <telerik:RadMenuItem x:Name="mnuRename" Height="23" Header="{Lang:LangCheck Rename}" Click="mnuRenameBasic_Click">
                                            <telerik:RadMenuItem.Icon>
                                                <Image Source="{DynamicResource rename}"/>
                                            </telerik:RadMenuItem.Icon>
                                        </telerik:RadMenuItem>
                                    </telerik:RadContextMenu>
                                </telerik:RadContextMenu.ContextMenu>
                            </telerik:RadTreeView>

  2. Answer
    Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 03 Aug Link to this post

    Hi Adnan,

    Untill Q3 2015 the real Multiple Selection Mode was not implemented in RadTreeView and actually Extended and Multiple modes had the same behavior. We implemented the Multiple selection in Q3 2015 giving you the ability to select and deselect items with mouse. If you still need to use the Extended mode, you need to set the SelectionMode to Extended and your treeview will behave the same way as before.

    Just to note that Multiple selection mode is designed and has the same behavior like Multiple mode in RadListBox, RadGridView, RadTileView etc.

    You can refer to our documentation article for further reference.

    Regards,
    Petar Mladenov
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Adnan
    Adnan avatar
    7 posts
    Member since:
    Sep 2013

    Posted 03 Aug Link to this post

    Extended Mode solve my problem, thanks.
Back to Top