This is a migrated thread and some comments may be shown as answers.

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

2 Answers 192 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Adnan
Top achievements
Rank 1
Adnan asked on 02 Aug 2016, 10:57 AM

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 Answers, 1 is accepted

Sort by
0
Accepted
Petar Mladenov
Telerik team
answered on 03 Aug 2016, 05:39 AM
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.
0
Adnan
Top achievements
Rank 1
answered on 03 Aug 2016, 06:00 AM
Extended Mode solve my problem, thanks.
Tags
TreeView
Asked by
Adnan
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Adnan
Top achievements
Rank 1
Share this question
or