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

RadGridView RowStyleSelector Condition With a Dataset ItemSource

1 Answer 254 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Yel
Top achievements
Rank 1
Yel asked on 10 Sep 2013, 02:56 PM
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> 


1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 13 Sep 2013, 01:36 PM
Hello Yel,

I would suggest you to check this help article, where you can find more information about RowStyleSelector.

Regards,
Yoan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Yel
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or