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

RadGridView problems with unbounded CheckBox Column

1 Answer 46 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Max
Top achievements
Rank 1
Max asked on 14 Mar 2008, 09:37 AM
Hi! In old version unbounded and bounded checkbox columns doesn't works and when I scroll gridView it clear state of all checkboxes. Now it doesn't clear, but if I check one checkbox after scroll more checkboxes becomes checked :). Ok, if I set DataMember to this column it works fine, but how can I catch event OnCheck?

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 14 Mar 2008, 01:47 PM
Hi Max,

Thank you for contacting us.

You can handle the ValueChanged event of the RadCheckBoxEditor when processing the CellFormatting event. Please refer to the sample below:

void radGridView1_CellFormatting(object sender, CellFormattingEventArgs e) 
    if (e.CellElement is GridCheckBoxCellElement) 
    { 
        RadCheckBoxEditor editor = (RadCheckBoxEditor)e.CellElement.Children[0]; 
        if (editor.Tag == null
        { 
            editor.ValueChanged += new EventHandler(editor_ValueChanged); 
            editor.Tag = true
        } 
    } 

I hope this helps. Please let us know, if you need further assistance.

Kind regards,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Max
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or