Hi,
I is it possible to enable/disable buttons in the toolbar from within code?
I would to enable the Edit and Delete buttons only if there is a row selected in a RadGrid. In the Grid_SelectionChanged I would like to change the buttons state.
I is it possible to enable/disable buttons in the toolbar from within code?
<telerikNavigation:RadToolBar x:Name="Mus_ToolBar" Margin="0" Grid.Row="0" Grid.Column="0" d:LayoutOverrides="Height"> |
<Button Click="ToolBarClick" Tag="Mus_New"> |
<Image Width="16" Height="16" Source="/Images/new.png" ToolTipService.ToolTip="New" /> |
</Button> |
<Button Click="ToolBarClick" Tag="Mus_Edit"> |
<Image Width="16" Height="16" Source="/Images/edit.png" ToolTipService.ToolTip="Edit" /> |
</Button> |
<Button Click="ToolBarClick" Tag="Mus_Delete"> |
<Image Width="16" Height="16" Source="/Images/delete.png" ToolTipService.ToolTip="Delete" /> |
</Button> |
<Button Click="ToolBarClick" Tag="Mus_Refresh"> |
<Image Width="16" Height="16" Source="/Images/refresh.png" ToolTipService.ToolTip="Refresh" /> |
</Button> |
</telerikNavigation:RadToolBar> |
I would to enable the Edit and Delete buttons only if there is a row selected in a RadGrid. In the Grid_SelectionChanged I would like to change the buttons state.