Hello,
I currently have a ToggleButton and a Textblock inside a gridcell. The ToggleButton shows/hides a RowDetailsTemplate. How can I make the ToggleButton AND Textblock both visible within a CellEditTemplate.
It seems to through an unhandled exception when I wrap both of these controls inside of a Grid within the CellEditTemplate. any ideas?
I currently have a ToggleButton and a Textblock inside a gridcell. The ToggleButton shows/hides a RowDetailsTemplate. How can I make the ToggleButton AND Textblock both visible within a CellEditTemplate.
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding Account}"
<telerik:GridViewDataColumn.CellTemplate>
<
DataTemplate
>
<
Grid
<Grid.ColumnDefinitions>
<
ColumnDefinition
Width
=
"20"
/>
<
ColumnDefinition
Width
=
"*"
/>
</
Grid.ColumnDefinitions
>
<
ToggleButton
IsChecked
=
"{Binding DetailsVisible}"
/>
<
TextBlock
Grid.Column
=
"1"
Text
=
"{Binding Description}"
/>
</
Grid
>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
<
telerik:GridViewDataColumn.CellEditTemplate
>
<
DataTemplate
>
<
TextBox
Text
=
"{Binding Description}"
/>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellEditTemplate
>
</
telerik:GridViewDataColumn
>
It seems to through an unhandled exception when I wrap both of these controls inside of a Grid within the CellEditTemplate. any ideas?