RadGridView RowStyleSelector Condition With a Dataset ItemSource

2 posts, 0 answers
  1. Yel
    Yel avatar
    2 posts
    Member since:
    Sep 2013

    Posted 10 Sep 2013 Link to this post

    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> 


  2. Yoan
    Admin
    Yoan avatar
    1180 posts

    Posted 13 Sep 2013 Link to this post

    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 >>
Back to Top