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

Fire the RadStrip click event programatically

2 Answers 174 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Nijanand
Top achievements
Rank 1
Nijanand asked on 09 Jun 2011, 06:11 PM
Is there a way to raise the RadTabStrip tab click event programatically?

I want to be able to raise the event and not just call the event handler directly.

2 Answers, 1 is accepted

Sort by
0
Gimmik
Top achievements
Rank 1
answered on 09 Jun 2011, 07:27 PM
Hi Nijanand,

I don't think manually raising an event is supported, but you may want to submit a support ticket to Telerik to confirm.

-Gimmik
0
Accepted
Helen
Telerik team
answered on 10 Jun 2011, 09:59 AM
Hello Nijanand,

Actually It is not supported. You should call an event handler in order to raise the event. See the code below:

protected void Page_Load(object sender, System.EventArgs e)
{
    RadTabStripEventArgs args = new RadTabStripEventArgs(RadTabStrip1.Tabs[0]);
    RadTabStrip1_TabClick(this.RadTabStrip1, args);
}
 
protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
{
    Label1.Text = e.Tab.Text;
}

Regards,
Helen
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
TabStrip
Asked by
Nijanand
Top achievements
Rank 1
Answers by
Gimmik
Top achievements
Rank 1
Helen
Telerik team
Share this question
or