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

Select Column in Custom Row Layout

2 Answers 45 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Murray
Top achievements
Rank 2
Murray asked on 25 Jul 2011, 05:28 PM
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 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 26 Jul 2011, 08:13 AM
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!

0
Murray
Top achievements
Rank 2
answered on 26 Jul 2011, 12:34 PM
That is perfect! Thank you Vanya !
Tags
GridView
Asked by
Murray
Top achievements
Rank 2
Answers by
Vanya Pavlova
Telerik team
Murray
Top achievements
Rank 2
Share this question
or