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

Is there a clientside tab click?

2 Answers 86 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
sitefinitysteve asked on 09 Dec 2010, 10:08 PM
I want to handle a click event, and prompt the user with a message saying that a tab is disabled (when it is disabled)...

Doable out of the box, or should I wire up a jQuery click event of my own?

2 Answers, 1 is accepted

Sort by
0
Accepted
Cori
Top achievements
Rank 2
answered on 10 Dec 2010, 02:30 PM
Hello Steve,

There is OnClientTabSelected, but it requires the tab to be enabled to fire. Also, I doubt if they had a client-side click event that it wouldn't fire if a control is disabled, since that is the whole point of a disabled control. A disabled control shouldn't respond to events. I guess you can add a tooltip to the disabled tabs that shows the message.

I hope that helps.
0
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
answered on 10 Dec 2010, 02:31 PM
Ok, so I'll just do a jQuery click

I was thinking the same thing, but I figured if it was there I could at least check for the disabled state and not run the code in the function.
Tags
TabStrip
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Cori
Top achievements
Rank 2
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
Share this question
or