This is a migrated thread and some comments may be shown as answers.

Selective postbach to choosen tab

2 Answers 61 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Lord Vader
Top achievements
Rank 1
Lord Vader asked on 10 Feb 2011, 03:22 PM
Hello,

I have a radtabstrip in my page as a wizard, there is a preview page view at the end of the wizard but the user can go back clicking on the other tabs to edit.

I am looking for client code to only postback the preview pageview (radtab) when it is called and not the other tabs.

Thank you,
Shehab

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 11 Feb 2011, 05:35 AM
Hello Shehab ,

You can achieve this by subscribing the event OnClientTabSelecting and there you can use the method set_postBack to achieve your requirement.

Javascript:
function OnClientTabSelecting(Sender, args)
   {
       if (args.get_tab().get_text() != "Text")//condition
        {
           args.get_tab().set_postBack(false);
       }
   }
Thanks,
Shinu.
0
Lord Vader
Top achievements
Rank 1
answered on 11 Feb 2011, 12:53 PM
That was it, thank you Shinu.
Tags
TabStrip
Asked by
Lord Vader
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Lord Vader
Top achievements
Rank 1
Share this question
or