Hi,
I want to add new commands to the RibbonBar inside the RibbonBar's ButtonClick event handler. Unfortunately, this doesn't seem to work as they are server-side added, but aren't visible on the client.
How I can I achieve this?
Thanks!
Edit: The ribbon bar is used in an AjaxManager:
In the ButtonClick event (in the same case where it is necessary that the ribbon bar changes), the m_contentPanel (it is just a div) is cleared and another control is added to the content panel.
When I try to add commands to the RibbonBar, the LoadingPanel also never disappears in the m_contentPanel. If I just add the new control without changed the RibbonBar, the LoadingPanel disappears and the control is displayed correctly.
I want to add new commands to the RibbonBar inside the RibbonBar's ButtonClick event handler. Unfortunately, this doesn't seem to work as they are server-side added, but aren't visible on the client.
How I can I achieve this?
Thanks!
Edit: The ribbon bar is used in an AjaxManager:
AjaxSetting ajaxSetting1 =
new
AjaxSetting(m_ribbonBar.ID);
ajaxSetting1.UpdatedControls.Add(
new
AjaxUpdatedControl(m_contentPanel.ID, loadingPanel.ID) { UpdatePanelHeight =
new
Unit(
"100%"
) });
RadAjaxManager1.AjaxSettings.Add(ajaxSetting1);
In the ButtonClick event (in the same case where it is necessary that the ribbon bar changes), the m_contentPanel (it is just a div) is cleared and another control is added to the content panel.
When I try to add commands to the RibbonBar, the LoadingPanel also never disappears in the m_contentPanel. If I just add the new control without changed the RibbonBar, the LoadingPanel disappears and the control is displayed correctly.