disable row selection and rowdetailstemplate with converter

2 posts, 0 answers
  1. Greg
    Greg avatar
    17 posts
    Member since:
    Oct 2010

    Posted 08 Dec 2014 Link to this post

    I have a grid with:

    My RowDetailsTemplate has a StackPanel with the Visibility set using a converter as so:

    <telerik:RadGridView.RowDetailsTemplate  >
                <DataTemplate >
                                  <StackPanel Orientation="Horizontal" Visibility="{Binding myVariable, Converter={StaticResource IsShownConverter}}" >

    The converter is filtering properly, and only about 10% of my rows show something in the details template when selected.
    The other 90% of rows when selected open a blank area underneath the row.
    That is ok, but not aesthetically pleasing.

    How would I use the converter (or some other method?), to only allow the selection and showing of rowdetails for rows where the converter conditions are met?


  2. Yoan
    Yoan avatar
    1051 posts

    Posted 09 Dec 2014 Link to this post


    In order to achieve your goal, you can use a RowStyleSelector where you can set which row will be expandable. You can check this online demo for a reference. The same example is available in your local copy of WPF demos.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. DevCraft R3 2016 release webinar banner
Back to Top