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
90
XamWebGrid - Want single click editing of check box
posted

I am using version 2009.1 to create a XamWebGrid in my code behind.  I set the ItemSource to my datasource which is an Observable Collection.  All columns are ReadOnly except for the first column which is a checkbox.  The user can check or uncheck this - 

The problem is that checking or unchecking seems to be a 2 click process:  1 click to activate the cell & a second click to change the value.  How can I set this up so that the user only has to click once?

I have  the following settings:

 

this.ctl_ResultsWebGrid.EditingSettings.AllowEditing = Infragistics.Silverlight.EditingType.Row;

 

this.ctl_ResultsWebGrid.EditingSettings.IsEnterKeyEditingEnabled = true;

 

this.ctl_ResultsWebGrid.EditingSettings.IsOnCellActiveEditingEnabled = true;

 

this.ctl_ResultsWebGrid.EditingSettings.IsF2EditingEnabled = true;

 

this.ctl_ResultsWebGrid.EditingSettings.IsMouseActionEditingEnabled = Infragistics.Silverlight.MouseEditingAction.SingleClick;

 

this.ctl_ResultsWebGrid.EnterEditMode();

Parents
No Data
Reply
  • 40030
    Verified Answer
    Offline posted

    Hi, 

    Using the CheckBox column, this isn't really possible, b/c we wanted to be able to support editing events, and if we didn't have this mechanism then we wouldn't know that the cell was entering or exiting edit mode.

    However, you can still achieve this using a TemplateColumn with a CheckBox and binding to the IsChecked property.  The only thing to note is that it won't participate in the editing events. 

    -SteveZ

Children