We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Binding and Sub-MenuItems


I want to build the structure of my SfMenu-control based on a View-Model and binding. This works fine as long as I have a "flat" menu without sub-elements. Is there a way to bind to a structure holding also sub-menu-items.

Current idea would be something like this:

public ObservableCollection<MyMenuItemClass> MenuItems {get; set;}

public string MenuHeader {get; set; }
public ObservableCollection<MyMenuItemClass> SubMenuItems {get; set;}

But of course the binding does not automatically recognize the MenuItems. Also tried to add binding within the ItemContainerStyle and the ItemsSource property. But this does not work.

Any suggestions?

Best regards, Gernot

1 Reply

MS Marimuthu Sivalingam Syncfusion Team November 15, 2016 09:20 AM UTC

Hi Gernot,

We were able to reproduce the issue and have logged defect report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates


Marimuthu S. 

Live Chat Icon For mobile
Up arrow icon