Announcement
Collapse
No announcement yet.
X
-
Emm, probably you can cancel all tab selection events by default and select tabs programmatically when you need it, have you tried this approach?
-
Let me be more specific, maybe there's a better way to accomplish what I am doing.
When a user makes edits in a tab and tries to change the tab without saving or undoing the changes, I want to display a dialog and ask them if they want to save their changes or not.
I don't want to use the default dialog for this, because if they say they want to save their changes I need to display another dialog asking them to comment on what changes they made.
So if they hit yes or no, I just need to save edits or discard edits, which is not a problem. But if they hit cancel, I need to cancel the tab selection. I know I can use event.cancel() in tabdeselectedevent, but when I display a dialog, tabdeselectedevent doesn't wait for the response from the dialog box. So the dialog box needs to be able to cancel the event.
Thanks.
Leave a comment:
-
Change Tabs
Hello,
Is there a way to dynamically change tabs? Let's say after user clicks a button I need to change the current tab.
ThanksTags: None
Leave a comment: