Select Column in Custom Row Layout

3 posts, 0 answers
  1. Murray
    Murray avatar
    121 posts
    Member since:
    Aug 2010

    Posted 25 Jul 2011 Link to this post

    http://demos.telerik.com/silverlight/#GridView/CustomRowLayout

    Is there a way to add a SelectColumn to this custom layout? I need a way to select all (or multiple) records.

    Thanks
    Murray
  2. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 26 Jul 2011 Link to this post

    Hi Murray,


    In a custom row layout scenario everything is custom and you may see that you do not have any columns. Thinking in this way if you want to build some behavior in such layout you should do it by your side. You may integrate a CheckBox control and to make the appropriate Binding relative to the IsSelected property of a GridViewRow to achieve a result similar to the one implemented in a GridViewSelectColumn:

    <CheckBox VerticalAlignment="Center" Grid.RowSpan="4" Margin="2"  IsChecked="{Binding IsSelected,RelativeSource={RelativeSource TemplatedParent},Mode=TwoWay}"/>


    You may find attached sample project that demonstrates how this can be achieved. 


    I look forward to hearing from you!

    Greetings,
    Vanya Pavlova
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. DevCraft banner
  4. Murray
    Murray avatar
    121 posts
    Member since:
    Aug 2010

    Posted 26 Jul 2011 Link to this post

    That is perfect! Thank you Vanya !
Back to Top