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

Checkbox Events

1 Answer 99 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 2
Kevin asked on 25 Feb 2009, 11:22 AM
I seem to be having a problem with checkbox events...

I've got in my RadGridView a Column of checkboxes... What i want to do is determine if ANY of these check boxes has been ticked. if one or more have been ticked then it enables a "Next" button, if none are ticked the next button is disabled.

So we need to do this on an event level. However i cannot for the life of me find an event that fires AFTER the checkbox value has been changed! I realise this is not complicated logic, but i cannot find the correct Event handler!

Thanks in advance
Regards
Kevin.

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 26 Feb 2009, 09:29 AM
Hi kevin,

You could use the ValueChanged event and check the ActiveEditor.Value property. Please consider the code snippet below:

void radGridView1_ValueChanged(object sender, EventArgs e) 
    GridCheckBoxCellElement checkBoxCell = (GridCheckBoxCellElement)sender; 
    if (checkBoxCell != null
    { 
        bool newValue = (bool)this.radGridView1.ActiveEditor.Value; 
        //... 
    } 

I will be glad to help you if you need further assistance.

Best wishes,
Jack
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Kevin
Top achievements
Rank 2
Answers by
Jack
Telerik team
Share this question
or