Menu Bar using ObservableCollection

Do you have an example of updating the menu bar items using ObservableCollection? Or is there a better way to dynamically update the items? Thank you.


5 Replies

TS Thaneegairaj Sankar Syncfusion Team February 11, 2022 04:00 AM UTC

Hi Dave,


We can be able to update the menu bar items, please refer the below UG documentation link.


UG: https://blazor.syncfusion.com/documentation/menu-bar/how-to/customize-menu-items


Could you please check the above details and get back to us whether it fulfill your requirement or need further assistance on this.


Regards,

Thaneegairaj S



DA Dave February 11, 2022 04:20 AM UTC

Yes, thanks. I can probably make the add/remove feature work. I was hoping that ObservableCollection would be a better option for me as suggested here: https://blazor.syncfusion.com/documentation/common/data-binding/data-updates. But I've been unable to get ObservableCollection to work for Menu Bar.



TS Thaneegairaj Sankar Syncfusion Team February 17, 2022 08:41 AM UTC

Hi Dave,


We have prepared a sample for Menu with ObservableCollection. Please find the below sample link,


Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Menu_observable1516561489


Could you please check the above details and get back to us, if you need any further assistance on this.  

  

Regards,  

Thaneegairaj S 



DA Dave February 18, 2022 09:22 AM UTC

Thank you. Your sample code works for my application.



TS Thaneegairaj Sankar Syncfusion Team February 21, 2022 09:58 AM UTC

  
Hi Dave, 
  
We are happy to hear that your requirement has been fulfilled. Please feel free to contact us if you need any further assistance on this. 
  
Regards, 
Thaneegairaj S

Loader.
Up arrow icon