jQWidgets Forums

jQuery UI Widgets Forums Grid Grid edit mode 2 – edited value remains

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 11 years, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author

  • luesak
    Participant

    Hi,

    Here’s the problem… When I edit a cell .. say change value from A to B… and then I click on some other row… the value in the edited cell remains B…

    Now if I click again somewhere completely outside the grid… the value returns to A.

    In my case, there is no function to persist B. The only reason I made the grid editable is so that users can copy the selected cell value easily… however as soon as they blur the editor in the cell, I would like the cell to go back to the original value (in the case above go back to A).

    Is this a bug? If not how can the above described function be achieved?

    So I want users to be able to select cell contents in the editor without being able to change the value… i.e. like making a readonly textbox.

    I’ve tried browserselection but.. that looks really odd with multiplerowsexteded selection mode.

    Thanks

    Kim


    Peter Stoev
    Keymaster

    Hi Kim,

    When you edit a cell and click outside the Grid, the edited value remains. That is by design and that is how the Grid works in ver. 3.0.3.

    Best Regards,
    Peter Stoev

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


    luesak
    Participant

    Peter,

    Thanks! How can I allow users to select text from the cell without edit mode and without browserselection : true?

    Or is there a way to make edit mode readonly?

    Thanks

    Kim


    Peter Stoev
    Keymaster

    Hi Kim,

    If you want your users to be able to select text or part of text by using the default browser’s selection, then set the Grid’s enablebrowserselection property to true.

    Best Regards,
    Peter Stoev

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

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

You must be logged in to reply to this topic.