Checkbox / RadioButton check not immediate

2 posts, 1 answers
  1. Brian
    Brian avatar
    14 posts
    Member since:
    Oct 2010

    Posted 02 Nov 2011 Link to this post

    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?
  2. Answer
    Peter avatar
    1148 posts

    Posted 04 Nov 2011 Link to this post

    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,
    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.

  3. DevCraft R3 2016 release webinar banner
Back to Top