jQuery UI Widgets Forums Navigation Ribbon Cancelling 'unselect' event

This topic contains 3 replies, has 2 voices, and was last updated by  Dimitar 8 years, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Cancelling 'unselect' event #83265

    gush
    Participant

    Hi all

    I’m using jqxRibbon.
    When the user makes changes to a control in the current tab and tries to move to another, i prompt his confirmation saying:
    “The changes you made will be discarded. Are u sure u want to switch to…?” with yes and no options.
    Is there a way to cancel the ‘unselect’ event, or any other way, and prevent switching tabs in case the user selects ‘No’?

    Thank you

    Cancelling 'unselect' event #83284

    Dimitar
    Participant

    Hi gush,

    Unfortunately, such feature is not supported by jqxRibbon, but it is by the similar jqxTabs widget by using the selecting event. For more information, please refer to the jqxTabs API documentation.

    Best Regards,
    Dimitar

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

    Cancelling 'unselect' event #83300

    gush
    Participant

    Thank you for your reply, Dimitar.

    I need it to be vertical, does jqxTabs support that?

    If not, any suggestions?

    Cancelling 'unselect' event #83375

    Dimitar
    Participant

    Hi gush,

    Unfortunately, jqxTabs does not support a vertical layout.

    Something you can try with jqxRibbon is to re-select the old tab (with selectAt) if the user selects “no” in the confirm box.

    Best Regards,
    Dimitar

    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.