jQWidgets Forums

jQuery UI Widgets Forums Grid Celledition start on any keystroke

This topic contains 4 replies, has 2 voices, and was last updated by  ivailo 9 years, 8 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Celledition start on any keystroke #76135

    fdski
    Participant

    Hi guys,

    Users really don’t want anyone accidentally entering the data into the grid ( yes, I know its silly, but you know them users… 😀 )
    Therefore, I need to disable ability to edit without doubleclick on particular cell/row. Right now, if row which is editable was clicked – hitting any key will cause value to be entered into first editable column.

    I tried
    keyboardnavigation: false,
    did not work.

    handlekeyboardnavigation: function (event) {
    event.preventDefault();
    },
    didn’t help either.

    selectionmode: ‘singlerow’,
    editmode: ‘dblclick’,

    are my settings.

    Any ideas ? Am i missing something here ?

    Thanks,

    Bart

    Celledition start on any keystroke #76138

    fdski
    Participant

    Btw,

    handlekeyboardnavigation: function (event) {
    event.preventDefault();
    },

    that littie bit of code if attached to one grid will automatically get events from all other loaded grids 🙂

    Celledition start on any keystroke #76139

    ivailo
    Participant

    Hi fdski,

    As an alternative you can use popup editing.
    This way the users will not have any permissions to enter accidentally data.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    Celledition start on any keystroke #76183

    fdski
    Participant

    Thanks Ivailo,

    unfortunatelly popup is not an option once the users seen inline editing 🙂

    So there is no way to prevent such behavour ?

    B

    Celledition start on any keystroke #76204

    ivailo
    Participant

    Hi fdski,

    Try to use editmode: 'programmatic',.
    Here is a demo, that prevents unwanted editing.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.