Hi guys,
I am learning Telerik Silverlight Resources and I am using a Telerik radGridView with a radButton in last collumn like examples in official page.
But when I run the application, the radButton appears like disable status and if I click it, its launch the radGridView SelectionChanged row event and so the radButton is active.
What causes this problem?
XAML Code:
<telerik:RadGridView x:Name="RadGridView1" SelectionChanged="selection_changed">
<telerik:RadGridView.Columns>
<telerik:GridViewColumn Width="90">
<telerik:GridViewColumn.CellTemplate>
<DataTemplate>
<telerik:RadButton Content="Delete"
Command="telerikGrid:RadGridViewCommands.Delete"
CommandParameter="{Binding}" telerik:TouchManager.IsTouchHitTestVisible="False"/>
</DataTemplate>
</telerik:GridViewColumn.CellTemplate>
</telerik:GridViewColumn>
I load grid in code behind:
Code Behind:
protected void LoadRadGridView()
{
radGridView.ItemsSource = _listItems;
Please help me.
I am learning Telerik Silverlight Resources and I am using a Telerik radGridView with a radButton in last collumn like examples in official page.
But when I run the application, the radButton appears like disable status and if I click it, its launch the radGridView SelectionChanged row event and so the radButton is active.
What causes this problem?
XAML Code:
<telerik:RadGridView x:Name="RadGridView1" SelectionChanged="selection_changed">
<telerik:RadGridView.Columns>
<telerik:GridViewColumn Width="90">
<telerik:GridViewColumn.CellTemplate>
<DataTemplate>
<telerik:RadButton Content="Delete"
Command="telerikGrid:RadGridViewCommands.Delete"
CommandParameter="{Binding}" telerik:TouchManager.IsTouchHitTestVisible="False"/>
</DataTemplate>
</telerik:GridViewColumn.CellTemplate>
</telerik:GridViewColumn>
<telerik:RadGridView.GroupDescriptors></telerik:RadGridView>
<telerik:GroupDescriptor Member="Country"
SortDirection="Ascending" />
</telerik:RadGridView.GroupDescriptors>
I load grid in code behind:
Code Behind:
protected void LoadRadGridView()
{
radGridView.ItemsSource = _listItems;
GroupDescriptor descriptor = new GroupDescriptor(); descriptor.Member = "ItemType"; descriptor.SortDirection = ListSortDirection.Ascending;}
Please help me.