This question is locked. New answers and comments are not allowed.
Hi!
I am trying to hide the GridViewToggleRowDetailsButton depending on a property ("HasDetails") in the Viewmodel.
When the button is clicked I want to dynamically load the data for the rowdetails from a database.
In wpf I can achive this by using the folllowing Columndefinition:
How can I do the same in Silverlight?
Best Regards,
Matthias
I am trying to hide the GridViewToggleRowDetailsButton depending on a property ("HasDetails") in the Viewmodel.
When the button is clicked I want to dynamically load the data for the rowdetails from a database.
In wpf I can achive this by using the folllowing Columndefinition:
<telerik:GridViewToggleRowDetailsColumn x:Uid="telerik:GridViewToggleRowDetailsColumn_1" IsReorderable="False" IsResizable="False"> <telerik:GridViewToggleRowDetailsColumn.ToggleButtonStyle> <Style x:Uid="Style_2" TargetType="telerik:GridViewToggleButton"> <Setter x:Uid="Setter_4" Property="Visibility" Value="{Binding Path=HasDetails,Converter={StaticResource BoolToVisibilityConverter}}" /> <Setter x:Uid="Setter_5" Property="Command" Value="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadGridView}}, Path=DataContext.ShowProtocolsCommand}"/> <Setter x:Uid="Setter_6" Property="CommandParameter" Value="{Binding }"/> </Style> </telerik:GridViewToggleRowDetailsColumn.ToggleButtonStyle> </telerik:GridViewToggleRowDetailsColumn>How can I do the same in Silverlight?
Best Regards,
Matthias