Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
295
I need checkbox to update datasource on click
posted

I have a data source that has a couple of boolean fields.  I want the data source to be updated when the check boxes are checked.  I have set the UpdateMode for the XamDataGrid to OnCellChangeOrLostFocus but the data source is only updated when I move off of the check box field.  Is there any way to update the data source as soon as the check box is clicked?

Parents
No Data
Reply
  • 30945
    Verified Answer
    Offline posted

    Hello,

     

    I have been looking into the functionality that you are looking for and by default a XamCheckEditor is used for Boolean fields. When it is used the values of the data source is updates after the XamCheckEditor exits edit mode. I can suggest re-templating the CellValuePresenter and adding a CheckBox in the ControlTemplate and binding its IsChecked property to the Value property of the cell. I have created a sample application for you which shows how this approach can be followed.

     

     

    If you need any further assistance please do not hesitate to ask.

     

    Sincerely,

    Krasimir

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

    CellUpdate.zip
Children