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

[Solved] Tab Selection and event propagation

1 Answer 144 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ravindra
Top achievements
Rank 1
Ravindra asked on 30 Aug 2011, 09:09 PM
Hi,
I need help in 2 points.

1. If i'm in Tab 1 and clicking on Tab2, I want to know the index of Tab 1. how can we get it from the event args (e) of onSelect client event?
2. When i click on Tab 2, i'll do some validation for Tab 1 content and if validation results to failed, i want to retain the client in Tab 1. (by stopping the event propagation) how do we do it? i'm calling stoppropagation() method but no luck..

Any help would be appreciated

Thanks,
Ravi

1 Answer, 1 is accepted

Sort by
0
nachid
Top achievements
Rank 1
answered on 31 Aug 2011, 12:00 PM
I don't think you can get it the way you mentioned.
But for sure you can get it by checking the one that has this class 't-state-active'

Tags
TabStrip
Asked by
Ravindra
Top achievements
Rank 1
Answers by
nachid
Top achievements
Rank 1
Share this question
or