jQWidgets Forums

jQuery UI Widgets Forums Grid Check if cell is in edit mode

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 10 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Check if cell is in edit mode #61627

    miker55
    Participant

    Is there any way to determine if the cell the user is in is currently in edit mode? I have some read-only columns in my grid and I would like to override the left and right arrow keys to move them to the next editable cell, but only if they are not currently editing a cell.

    Thanks!

    Mike

    Check if cell is in edit mode #61645

    Dimitar
    Participant

    Hello Mike,

    You can define a variable which to show if a cell is currently in edit mode (initially false). On the cellbeginedit event, update the variable to true. Now, if you press the left or right arrow, you will know, by checking the variable, that the grid is in edit mode. On the cellendedit event, update the variable to false.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.