GridViewSelectColumn Binding Two Way

4 posts, 0 answers
  1. Ravi
    Ravi avatar
    104 posts
    Member since:
    Oct 2012

    Posted 18 Apr 2011 Link to this post

    Hi,

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

    Thanks,
    Shiras

  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 18 Apr 2011 Link to this post

    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
  3. DevCraft banner
  4. Ravi
    Ravi avatar
    104 posts
    Member since:
    Oct 2012

    Posted 18 Apr 2011 Link to this post

     

     

     

     

    <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

  5. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 18 Apr 2011 Link to this post

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