Hi,
I want to use a RowStyleSelector in a RadGridView to make rows Expandable or not depends on the value of a column of my ItemSource.
ItemSource is a Dataset that contains a DataTable (ID, Name, Type, SerialNumber, ...).
I need to make rows expandable if the Type ='Updated'.
My actual code (below) is not working:
<telerik:RadGridView.RowStyleSelector>
<telerik:ConditionalStyleSelector>
<telerik:StyleRule Condition="Type = Updated">
<Style TargetType="rad:GridViewRow">
<Setter Property="IsExpandable" Value="False" />
</Style>
</telerik:StyleRule>
</telerik:ConditionalStyleSelector>
</telerik:RadGridView.RowStyleSelector>
I want to use a RowStyleSelector in a RadGridView to make rows Expandable or not depends on the value of a column of my ItemSource.
ItemSource is a Dataset that contains a DataTable (ID, Name, Type, SerialNumber, ...).
I need to make rows expandable if the Type ='Updated'.
My actual code (below) is not working:
<telerik:RadGridView.RowStyleSelector>
<telerik:ConditionalStyleSelector>
<telerik:StyleRule Condition="Type = Updated">
<Style TargetType="rad:GridViewRow">
<Setter Property="IsExpandable" Value="False" />
</Style>
</telerik:StyleRule>
</telerik:ConditionalStyleSelector>
</telerik:RadGridView.RowStyleSelector>