Forum Discussion
aqAnt
Alumni
14 years agoHello viola,
Here is the code that should work for you:
var ribbons = mdiMain.FindAllChildren("ClrFullClassName", "DevExpress.XtraBars.Ribbon.RibbonControl", 5);
ribbons = (new VBArray(ribbons)).toArray();
if (ribbons.length > 0)
{
for (i = 0; i < ribbons.length; i++)
{
if (ribbons.get_IsMerged())
{
ribbons.ClickItem("New Page|ABC|My Button");
}
}
}