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

GridViewSelectColumn Binding Two Way

3 Answers 221 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ravi
Top achievements
Rank 1
Ravi asked on 18 Apr 2011, 10:14 AM

Hi,

For my hierachical grid, I am unable to get the two way binding work for the GridViewSelectColumn column.

Thanks,
Shiras

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 18 Apr 2011, 10:20 AM
Hello David,

Generally, the IsChecked property of each of the CheckBox-es is bound to the IsSelected property of the corresponding row. So, may you provide a bit more details about the exact scenario you want to achieve ? Do you want to bind it to a property of your business object ? 
 

Greetings,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ravi
Top achievements
Rank 1
answered on 18 Apr 2011, 12:43 PM

 

 

 

 

<telerikGridView:GridViewSelectColumn x:Name="PONSelectAll">
                                <telerikGridView:GridViewSelectColumn.CellTemplate>
                                    <DataTemplate>
                                        <CheckBox x:Name="chkPONDelete" IsChecked="{Binding IsDeleteCheckboxSelected, Mode=TwoWay}"></CheckBox>
                                    </DataTemplate>
                                </telerikGridView:GridViewSelectColumn.CellTemplate>                                
                            </telerikGridView:GridViewSelectColumn>

above is markup for the childgrid, Yes I want to bind it to a property of my business object. Infact the above one is not working for me.

Thanks
Shiras

0
Maya
Telerik team
answered on 18 Apr 2011, 12:50 PM
Hi David,

As mentioned previously, the GridViewSelectColumn is used only for selection and you may not bind its CheckBox-es properties to custom properties. What you may try to do is to use a GridViewCheckBoxColumn instead.
 

All the best,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Ravi
Top achievements
Rank 1
Answers by
Maya
Telerik team
Ravi
Top achievements
Rank 1
Share this question
or