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

Checkbox / RadioButton check not immediate

1 Answer 99 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 02 Nov 2011, 05:30 PM
I have noticed that checking a checkbox does not immediately update the datasource.  It isn't until I click on another control that the databinding occurs.

This seems inconsistent with how the standard winforms controls behave.

What is the most normal way of duplicating the standard behavior?

1 Answer, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 04 Nov 2011, 12:29 PM
Hello Brian,

By default .NET Simple data binding updates the bound values on OnValidatng event.
You can set .NET Simple data binding to update the values on OnPropertyChanged event:
For example:
this.radCheckBox1.DataBindings.Add("IsChecked", this.myObject, "MyProperty", true, DataSourceUpdateMode.OnPropertyChanged);

I hope this helps.

Best wishes,
Peter
the Telerik team

Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Brian
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or