In the client-side api of the (very nice btw!) RibbonBar I found a bug.
As you can see, this RibbonBar has two tabs. However when we use the findItemByText() method:
You will find Bold == null while Paste is an item. However if we swap the two tabs (So 'Layout' will be the first tab), now Bold is an item and Paste == null.
So findItemByText() only looks in the first tab.
Hope you can fix this.
<telerik:RadRibbonBar ID="rrbEditor" OnClientButtonClicked="rrbEditor_onClientButtonClicked" OnClientButtonToggled="rrbEditor_onClientButtonClicked" OnClientMenuItemClicked="rrbEditor_onMenuItemClicked"> <telerik:RibbonBarTab Text="Handy"> <telerik:RibbonBarGroup Text="Clipboard"> <Items> <telerik:RibbonBarMenu Size="Large" Text="Paste" ImageUrl="../../Images/Telerik/icons/editorimages/Paste.png"> </Items> </telerik:RibbonBarGroup> </telerik:RibbonBarTab> <telerik:RibbonBarTab Text="Layout"> <telerik:RibbonBarGroup Text="Font"> <Items> <telerik:RibbonBarButtonStrip> <Buttons> <telerik:RibbonBarToggleButton Size="Small" Text="Bold" ImageUrl="../../Images/Telerik/icons/editorimages/Bold.png" /> </Buttons> </telerik:RibbonBarButtonStrip> </Items> </telerik:RibbonBarGroup> </telerik:RibbonBarTab></telerik:RadRibbonBar>As you can see, this RibbonBar has two tabs. However when we use the findItemByText() method:
var ribbonBar = $find("<%= rrbEditor.ClientID %>");var Bold = ribbonBar.findItemByText("Bold");var Paste = ribbonBar.findItemByText("Paste");You will find Bold == null while Paste is an item. However if we swap the two tabs (So 'Layout' will be the first tab), now Bold is an item and Paste == null.
So findItemByText() only looks in the first tab.
Hope you can fix this.