foreach (CommandBarRowElement row in radCommandBar1.Rows)
{
foreach (CommandBarStripElement strip in row.Strips)
{
foreach (RadCommandBarBaseItem item in strip.Items)
{
if (item is CommandBarButton && item.Name == "MyButton123")
{
//do smth
}
}
}
}
I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.
Regards,
Stefan
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.