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

[Solved] IsEnable of Button not work with Command Paramenter

1 Answer 132 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Brian
Top achievements
Rank 1
Brian asked on 05 Nov 2010, 05:56 PM
If you have a button in a column and set IsEnabled to false and there is a Command value present, the control will not be disabled.

<telerik:GridViewColumn>
     <telerik:GridViewColumn.CellTemplate >
          <DataTemplate>
               <telerik:RadButton Content="Delete" Command="telerikGrid:RadGridViewCommands.Delete" CommandParameter="{Binding}" Click="btnDeleteTimeCardPunch_Click" IsEnabled="False" />
          </DataTemplate>
     </telerik:GridViewColumn.CellTemplate>
</telerik:GridViewColumn>

This is a pain as I using binding to set the IsEnabled property.

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 08 Nov 2010, 02:52 PM
Hi Brian,

You may take a look at this forum thread for a reference.
 

Kind regards,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Brian
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or