I have the following scenario.
I have a master page which contains the ribbon bar with multiple tabs.
When a user goes to a tab and clicks on a button or a split button, i redirect to relevant page from code behind.
Redirect happens fine & everything works except for one issue.
>> I need to keep the tab selected after being redirected. (if user clicks on a button contained in 'tab 02', after the redirect i need the ribbonbar to keep the 'tab 02' selected; but as it is, it resets to first tab after redirect. (using 2011 Q1 with server side events...)
Is it possible to achieve what I'm trying to do?
If it is how can it be done?
I have a master page which contains the ribbon bar with multiple tabs.
When a user goes to a tab and clicks on a button or a split button, i redirect to relevant page from code behind.
protected
void
RadRibbonBar1_ButtonClick(
object
sender, Telerik.Web.UI.RibbonBarButtonClickEventArgs e)
{
NavigateToPage(e.Button.Text.Trim());
}
// ---------------------------------
private
void
NavigateToPage(
string
navigationText)
{
switch
(navigationText.ToLowerInvariant())
{
case
"dashboard"
:
{
Response.Redirect(
"~/Default.aspx"
);
break
;
}
case
"button 01"
:
{
Response.Redirect(
"~/Default2.aspx"
);
break
;
}
case
"button 02"
:
{
Response.Redirect(
"~/Default3.aspx"
);
break
;
}
default
:
break
;
}
}
Redirect happens fine & everything works except for one issue.
>> I need to keep the tab selected after being redirected. (if user clicks on a button contained in 'tab 02', after the redirect i need the ribbonbar to keep the 'tab 02' selected; but as it is, it resets to first tab after redirect. (using 2011 Q1 with server side events...)
Is it possible to achieve what I'm trying to do?
If it is how can it be done?