Hi All,
I'm trying to implement a way to force the user to stay in the current tab if there are still unsumitted changes.
Googling around I've found that I should do something like this:
Add a handler to the "select" event
tabstripControl.kendoTabStrip({
select: onSelect
});
Define my handler
function
onSelect(e) {
if
(pendingChanges) {
if
(!confirm(
'Discard Pending changes?'
)) {
e.preventDefault();
// Expected: stay in tab -> Result: tab changes anyway
}
}
}
But for some reason it's not working as expected.
Any ideas?
Thank you