Hello,
I need to make the AccessKey cause a click event on the tab associated with the key. It does put a focus line around the tab, but it doesn't appear that any of the events fire for that. I currently have to then hit the Enter key to cause a click event to occur. How can I accomplish this using the RadTabStrip client API without resorting to some global keyboard code to catch the AccessKeys? My current code is below (sorry, but the Format Code Block button put in some extra stuff). I am using Q2 2011 sp1. Thanks!
Michael
I need to make the AccessKey cause a click event on the tab associated with the key. It does put a focus line around the tab, but it doesn't appear that any of the events fire for that. I currently have to then hit the Enter key to cause a click event to occur. How can I accomplish this using the RadTabStrip client API without resorting to some global keyboard code to catch the AccessKeys? My current code is below (sorry, but the Format Code Block button put in some extra stuff). I am using Q2 2011 sp1. Thanks!
Michael
<
P
><
script
language
=
"javascript"
type
=
"text/javascript"
><
BR
>
function mainTabSelected(sender, args) {<
BR
> var tab =
eventArgs.get_tab();<
BR
> tab.click();<
BR
>
}<
BR
></
script
></
P
>
<
P
><
telerik:RadTabStrip
ID
=
"RadTabStrip1"
runat
=
"server"
SelectedIndex
=
"0"
AutoPostBack
=
"true"
CausesValidation
=
"false"
ClickSelectedTab
=
"true"
OnClientTabSelected
=
"mainTabSelected"
><
BR
>
<
Tabs
><
BR
> <
telerik:RadTab
ID
=
"TabCampaignSetup"
Value
=
"CampaignEdit"
Text="<u>C</
u
>ampaign Setup" runat="server"
AccessKey="C" SelectedIndex="0" /><
BR
>
<
telerik:RadTab
ID
=
"TabMassSubscription"
Value
=
"CampaignMassSubscriptions"
Text="<u>A</
u
>dd Subscriptions" runat="server" AccessKey="A"
SelectedIndex="1" /><
BR
> <
telerik:RadTab
ID
=
"TabRemoveSubscriptions"
Value
=
"CampaignRemoveSubscriptions"
Text="<u>S</
u
>ubscriptions" runat="server" AccessKey="S"
SelectedIndex="2" /><
BR
> <
telerik:RadTab
ID
=
"TabContactHistory"
Value
=
"CampaignContactHistory"
Text="C<u>o</
u
>ntacts" runat="server" AccessKey="O"
SelectedIndex="4" /><
BR
> <
telerik:RadTab
ID
=
"TabCampaignHistory"
Value
=
"CampaignHistory"
Text="<u>H</
u
>istory" runat="server" AccessKey="H" SelectedIndex="3"
/><
BR
> </
Tabs
><
BR
></
telerik:RadTabStrip
><
BR
></
P
>