User (Old forums)MemberMay 30, 2007 at 7:32 amPost count: 23064
I’ve got a grid that has a ItemSource-collection with a property called “Add” (boolean). The grid shows this as a column with checkbox-cells. Perfect so far, but the user has to press the checkbox three times to set it to checked/unchecked. Here is what I think happens:
First click: The row is selected
Second click: Not sure, but I think the cell is set to inEdit mode.
Third click: The checkbox is set to checked.
So my question is how do I set the checkbox to “Checked” or “Unchecked” in one click?
Thanks in advance,
Imported from legacy forums. Posted by krogh (had 4471 views)User (Old forums)MemberMay 30, 2007 at 8:15 amPost count: 23064
have a look at CellEditorDisplayConditions and EditTriggers. You can set the grid so that it is always in Edit mode. There is also MouseOverCell and/or MouseOverRow.
Imported from legacy forums. Posted by Jack (had 406 views)User (Old forums)MemberMay 31, 2007 at 3:59 amPost count: 23064
Thanks for the reply.
I’ve tried to experiment with the edittrigger property, and are now down to two clicks to edit a checkbox (one to go 🙂 ). I’ve set the edittrigger property to SingleClick. Seems like it still needs one click to select the row (or cell? ) and one click to set the value of the checkbox
Imported from legacy forums. Posted by krogh (had 406 views)Xceed SupportMemberMay 31, 2007 at 8:13 amPost count: 5658
You can set the “CellEditorDisplayConditions” property on the Column or on the DataGridControl. Displaying the Editor on the MouseOverCell, MouseOverRow or Always will ensure that the “first” click will be on the editor instead of on the viewer.
Imported from legacy forums. Posted by Marcus [Xceed] (had 273 views)User (Old forums)MemberJune 1, 2007 at 11:28 amPost count: 23064
Could you skip the editor and just use the checkbox in the cell template to do the editing?
Imported from legacy forums. Posted by MiddleTommy (had 408 views)Xceed SupportMemberJune 1, 2007 at 2:05 pmPost count: 5658
You could, but doing so would “forfeit” the built-in edition/cancellation mechanism…
If your column always need to be “immediately” editable, then I advise setting the Column’s CellEditorDisplayConditions to Always.
Imported from legacy forums. Posted by Marcus [Xceed] (had 266 views)
- You must be logged in to reply to this topic.