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

[Solved] Columns with checkboxes

2 Answers 92 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nick Smith
Top achievements
Rank 1
Nick Smith asked on 26 Aug 2010, 04:49 PM
Hi,
I'm going to use RadGridViewControl (with GridViewDataColumn columns). Collection has fields of bool type and these columns are looks like CheckBox. Properties that are binded for that CheckBoxes changing when cell lost focus. But I need to change property immediately. How can I make it?

2 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 27 Aug 2010, 03:10 PM
Hello Nick Smith,

 
You may try to set the CellEditTemplate of the column and add a CheckBox inside. Afterwards you can handle its Checked event which is fired as soon as the CheckBox is being edited.
For example:

<telerik:GridViewDataColumn  DataMemberBinding="{Binding IsChampion}">
    <telerik:GridViewDataColumn.CellEditTemplate>
        <DataTemplate>
            <CheckBox Checked="CheckBox_Checked" IsChecked="{Binding IsChampion}"/>
        </DataTemplate>
    </telerik:GridViewDataColumn.CellEditTemplate>
</telerik:GridViewDataColumn>



Sincerely yours,
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
Nick Smith
Top achievements
Rank 1
answered on 27 Aug 2010, 04:02 PM
Thank you!
Tags
GridView
Asked by
Nick Smith
Top achievements
Rank 1
Answers by
Maya
Telerik team
Nick Smith
Top achievements
Rank 1
Share this question
or