I am trying to provide a confrimation prompt that would allow a user a second affirmation before actually changing tabs. Problem is it doesn't work, no matter what the user does, the tab is selected and the server event is fired.
| function ClientTabSelecting(sender, eventArgs) |
| { |
| var tabStrip = sender; |
| var tab = eventArgs.Tab; |
| return confirm("Are you sure you want to navigate away from this page?"); |
| } |
<
telerik:RadTabStrip ID="RadTabStrip1" Width="100%" runat="server" Skin="Hay" OnClientTabSelecting="ClientTabSelecting" multipageid="RadMultiPage1" AutoPostBack="false" PerTabScrolling="true" ScrollButtonsPosition="Middle" />
| protected override void OnInit(EventArgs e) |
| { |
| base.OnInit(e); |
| RadTabStrip1.TabClick += new RadTabStripEventHandler(TabClicked); |
| } |