jQuery UI Widgets Forums Navigation Tabs Unselecting event

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Unselecting event #58244

    susanthcv
    Participant

    Hi,

    Can I have the sample code for unselecting event, where I can cancel the event based on the validation. I just wanted to know how to use callback function with ‘event.cancel = true’.

    Below statement is found in the documentation for unselected event.

    This event is triggered when the user selects a tab. The last selected tab is going to become unselected. This event is cancelable. You can cancel the selection by setting the ‘event.cancel = true’ in the event callback.

    Thanks,
    Susanth

    Unselecting event #58257

    Dimitar
    Participant

    Hello Susanth,

    There seems to be an issue regarding this with the unselecting event. Here is how to cancel the selection when binding to the selecting event, though: http://jsfiddle.net/Dimitar_jQWidgets/0mgu47qa/.

    Best Regards,
    Dimitar

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

    Unselecting event #89250

    Ankit Shah
    Participant

    Hello Dimitar / JQWidget team,

    Have we resolved this issue? We have same situation and on Selecting event we need to process something and on unselecting we need to do some other things. In this scenario we UnSeleting is still not working.

    We are using jQWidget version 3.8.2 and for some reason we cannot update the version.

    Thanks in advance.
    –Ankit

    Unselecting event #89278

    Dimitar
    Participant

    Hello Ankit,

    The event unselecting is working (example), but it still cannot be canceled, unfortunately. As a workaround, you can cancel the selecting event, as shown in our example above.

    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.