Potential Bug(s) on ItemsSource and Selected Item Bindings

Hello,

I think there are potentially a couple of bugs on the binding of the NavigationDrawer / NavigationItem controls.


  1. The binding mode for SelectedItem on NavigationDrawer appears to be OneWay by default and is therefore not updating SelectedItem in ViewModels. Changing this to TwoWay works as expected. I don't know if this is expected behaviour, but with controls like the TabControl, it's normally expected to be TwoWay by default.
  2. Same with binding to ItemsSource on the NavigationItem. If the source is updated after the control is initially rendered, items no not appear to be added to the sub-menu.

Many thanks and apologies if these are intended behaviours rather than bu

4 Replies

RS Ruba Shanmugam Syncfusion Team May 19, 2022 02:06 PM UTC

Hi Adam,


Currently, we are validating the reported issue and we will let you know the status on May 23, 2022. We appreciate your patience until then.


Regards,

Ruba Shanmugam



PO PopeGregoryIX replied to Ruba Shanmugam May 19, 2022 02:15 PM UTC

Thank you! SF support are always really quick to reply.



SR Shivani Ramakrishnan Syncfusion Team May 23, 2022 02:04 PM UTC

Hi Adam,


Query 1: NavigationDrawer appears to be OneWay by default.

For now, we kindly request you to use the SelectedItem in two-way binding mode at the sample level. In the near future release, we update SelectedItem as the two-way mode by default.


Query 2: If the source is updated after the control is initially rendered, items do not appear to be added to the sub-menu.

We are validating the reported issue "NavigationItem ItemsSource changes" at our end. We will complete the analysis fully and let you know the status on 26th May 2022. We appreciate your patience until then.


Regards,

Shivani



SR Shivani Ramakrishnan Syncfusion Team May 26, 2022 11:57 AM UTC

Hi Adam,


On further analysis, we can't load the submenu items using the ItemsSource property. We can use the Items property to load the submenu items dynamically in the SfNavigationDrawer. We have prepared the sample for this requirement and please get it from the attachments.


Please check the sample and let us know if you need any other information.


Regards,

Shivani


Attachment: BindingNavigationDrawer_45d25610.zip

Loader.
Up arrow icon