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

How to Prevention OnTabClick event?

1 Answer 77 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
kia
Top achievements
Rank 1
kia asked on 03 Jan 2011, 10:38 AM
Hi
I using Vs.2008
I have a RadTripStrip with 4 tabs
I want fire OnTabClick event on server side just for one of those tabs

I write OnClientTabSelecting event, i can determine in this event what tab is selecting
Now, how i prevention OnTabClick event in my cutom case?

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 03 Jan 2011, 11:16 AM
Hello Kia,

You can use the method set_postBack to prevent the OnTabClick Event.

JavaScript:
function OnClientTabSelecting(sender, args)
{
   //condition
  args.get_tab().set_postBack(false);
}

Shinu.
Tags
TabStrip
Asked by
kia
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or