Hello,
Yes, the title is my main concern. Its maybe a bit confusing but take a look at the image. The first image shows that the commitedit and cancelrowedit is disabled as i didnt edit any row yet. The second image shows that all of the button on each of the row is enabled after i select the first row to be edited.
I am trying to set the other button to be disabled except for the button on current row. is there any way to do that? Here are my xaml code for the action column. Thank you so much for your help.
<telerik:GridViewColumn Header="Action">
<telerik:GridViewColumn.CellTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Button Grid.Row="0" x:Name="deleteColumn"
Height="35"
HorizontalAlignment="Center"
Command="telerikGrid:RadGridViewCommands.Delete"
CommandParameter="{Binding}">
<Button.Content>
<Image Source="Images/delete.ico"/>
</Button.Content>
</Button>
<Button Grid.Row="0" x:Name="saveColumn"
Height="35"
HorizontalAlignment="Center"
Command="telerikGrid:RadGridViewCommands.CommitEdit"
CommandParameter="{Binding}">
<Button.Content>
<Image Source="Images/saveInsert.ico"/>
</Button.Content>
</Button>
<Button Grid.Row="0" x:Name="cancelColumn"
Height="35"
HorizontalAlignment="Center"
Command="telerikGrid:RadGridViewCommands.CancelRowEdit"
CommandParameter="{Binding}">
<Button.Content>
<Image Source="Images/undo.ico"/>
</Button.Content>
</Button>
</StackPanel>
</DataTemplate>
</telerik:GridViewColumn.CellTemplate>
</telerik:GridViewColumn>
Yes, the title is my main concern. Its maybe a bit confusing but take a look at the image. The first image shows that the commitedit and cancelrowedit is disabled as i didnt edit any row yet. The second image shows that all of the button on each of the row is enabled after i select the first row to be edited.
I am trying to set the other button to be disabled except for the button on current row. is there any way to do that? Here are my xaml code for the action column. Thank you so much for your help.
<telerik:GridViewColumn Header="Action">
<telerik:GridViewColumn.CellTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Button Grid.Row="0" x:Name="deleteColumn"
Height="35"
HorizontalAlignment="Center"
Command="telerikGrid:RadGridViewCommands.Delete"
CommandParameter="{Binding}">
<Button.Content>
<Image Source="Images/delete.ico"/>
</Button.Content>
</Button>
<Button Grid.Row="0" x:Name="saveColumn"
Height="35"
HorizontalAlignment="Center"
Command="telerikGrid:RadGridViewCommands.CommitEdit"
CommandParameter="{Binding}">
<Button.Content>
<Image Source="Images/saveInsert.ico"/>
</Button.Content>
</Button>
<Button Grid.Row="0" x:Name="cancelColumn"
Height="35"
HorizontalAlignment="Center"
Command="telerikGrid:RadGridViewCommands.CancelRowEdit"
CommandParameter="{Binding}">
<Button.Content>
<Image Source="Images/undo.ico"/>
</Button.Content>
</Button>
</StackPanel>
</DataTemplate>
</telerik:GridViewColumn.CellTemplate>
</telerik:GridViewColumn>