6 Answers, 1 is accepted
Please take a look at our demos and online documentation for a reference.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
I tryied the code below but it seems not to be working. Is it correct to use the RaGrid delete command for the treelistview?
thanks
<
telerik:RadButton
Content
=
"Delete"
Margin
=
"15,0,0,0"
Command
=
"telerikGrid:RadGridViewCommands.Delete"
CommandTarget
=
"{Binding ElementName=_pagesTreeList}"
/>
<
telerik:RadTreeListView
x:Name
=
"_pagesTreeList"
CanUserDeleteRows
=
"True"
IsDragDropEnabled
=
"True"
AllowDrop
=
"True"
IsDragTooltipEnabled
=
"False"
DragCueItemTemplate
=
"{StaticResource DragCueTreeList}"
ItemsSource
=
"{Binding PagesHierarchy, Mode=TwoWay}"
AutoGenerateColumns
=
"False"
d:LayoutOverrides
=
"Width, Height"
>
There is no problem to use Delete command with RadTreeListView. Could you verify whether you have the required references added and the uri is correctly defined in your application ?
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
xmlns
:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:telerikGrid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
and the following references:
Telerik.Windows.Controls
Telerik.Windows.Controls.GridView
Telerik.Windows.Controls.Input
Telerik.Windows.Data
Telerik.Windows.Themes.Expression_Dark
The delete key works but not the button
Could you try to initialize the command before InitializeComponent() method:
public MainPage()
{
ICommand deleteCommand = RadGridViewCommands.Delete;
InitializeComponent();
}
Best wishes,
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>