Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Prevent single click edit on checkboxitem in a ListGrid

    Hi, how can I prevent singleclick edit on a checkboxitem in a ListGrid?

    It's fine to edit checkbox after doubleclick, but to avoid misstakes I want to prevent singleclick edit of checkboxes in ListGrids.

    /Johan

    #2
    Hello Johan,

    I also have the same problem, and I found that:

    rowClick: function (record, recordNum, fieldNum, keyboardGenerated) {
    if (this.fields[fieldNum].name == "checkboxFieldName") return false;
    return this.Super("rowClick", arguments);
    }

    add this event handler to ListGrid can prevent single click to change checkbox,
    but in my case, I use
    editEvent: "doubleClick",
    modalEditing: true,

    so this solution may not fit to all cases.


    Best regards,
    rollgan

    Comment


      #3
      Take a look at the ListGridField.canToggle property.

      Comment

      Working...
      X