Hi !
I want to select a ribbonbutton via server side, is it possible? I did not see any property to make a button selection, only the tabs, and that i'm not being able to make it work.
var selectedButtonCookie = Request.Cookies.Get("selectedButton");
if (selectedButtonCookie != null)
{
var button = ribbonBar.FindButtonByValue(selectedButtonCookie.Value);
if (button != null)
{
ribbonBar.SelectedTabIndex = button.ParentWebControl.TabIndex;
}
}
Thanks in advance
I want to select a ribbonbutton via server side, is it possible? I did not see any property to make a button selection, only the tabs, and that i'm not being able to make it work.
var selectedButtonCookie = Request.Cookies.Get("selectedButton");
if (selectedButtonCookie != null)
{
var button = ribbonBar.FindButtonByValue(selectedButtonCookie.Value);
if (button != null)
{
ribbonBar.SelectedTabIndex = button.ParentWebControl.TabIndex;
}
}
Thanks in advance