This is a migrated thread and some comments may be shown as answers.
GridViewCheckBoxColumn not saving state after being checked
2 Answers 24 Views
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 25 Apr 2012, 10:07 PM
I am having trouble getting a bound  boolean to a GridViewCheckBoxColumn to show its state. 

<telerik:RadGridView Name="dgvBreaks" ShowGroupPanel="False" Margin="0,0,0,53" AutoGenerateColumns="False" SelectionUnit="Cell">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Price}" Header="Price" Width="120" IsReadOnly="True" />
                <telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding MatchUs}" Header="Match Us" AutoSelectOnEdit="True" EditTriggers="CellClick" />
                <telerik:GridViewCheckBoxColumn DataMemberBinding="{Binding MatchThem}" Header="Match Them" AutoSelectOnEdit="True" EditTriggers="CellClick" />
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>

It looks like everything is binding fine, but if I click on the checkbox and go to another cell, the state of the checkbox is reset. I bound a normal GridViewDataColumn to the boolean field and I can see that the value is updated each time I click on the cell.

I am using build version 2012.1.326.40

2 Answers, 1 is accepted

Sort by
0
ClausDC
Top achievements
Rank 1
answered on 02 May 2012, 09:52 AM
I also have this problem.

It seems to have snuck in with an update to a newer version, I'm using build version 2012.1.215.40.
0
Dimitrina
Telerik team
answered on 02 May 2012, 12:15 PM
Hello,

 Indeed, there was such a problem with the official release. The problem was resolved and if you use the assemblies from the service pack, then your code should work as expected.

Please let me know if you can still encounter any problems.

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Asked by
David
Top achievements
Rank 1
Answers by
ClausDC
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or