We have a small application that uses tab sets. Basically a user can edit various tabs, the problem is, if the user does make changes, we’d like him to save before he can leave the tab. Is there a way to tell the system from the tabDeselected event, to stop the migration or something after he clicks on another tab?
I’ve tried several times to override the selectTab method in hopes of gaining control over the tabset functionality but with no luck. Can anyone suggest a way of stopping the user from leaving when he clicks on another tab? We don’t want to disable them, since he’s basically allowed to leave, we just want to warn him before he does that his unsaved data will be thrown away and give him an opportunity to save if he wishes.
Any suggestions would be greatly appreciated.