Home > DeveloperSection > Forums > Iterate through DevExpress Menu items in extraBar
Ankita Pandey
Ankita Pandey

Total Post:183

Points:1285
Posted on    November-20-2014 2:40 AM

 ASP.Net Devexpress 
Ratings:


 1 Reply(s)
 1109  View(s)
Rate this:

How to iterate through DevExpress Menu items in XtraBar ?

I need to iterate with a loop through all the menu items in xtrabar and i need to remove certain menu item on the way if some conditions are satisfied ?



Royce Roy
Royce Roy

Total Post:134

Points:938
Posted on    November-20-2014 6:05 AM

Try following:

    foreach (DevExpress.XtraBars.BarItem item in bar.Manager.Items)

    {

       //Do sth.

    }


Don't want to miss updates? Please click the below button!

Follow MindStick