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
close icon

How to get the selected menu item from DropDownButtonAdv?

I cant seem sto find the right property or event that deals with the currently selected menu item.  I must be overlooking something. 

3 Replies

JR Jegan Raj M Syncfusion Team April 22, 2013 04:34 AM UTC

Hi Ed

Thanks for your interest in Syncfusion products.

We have created sample based on your request which you can be downloaded from the below 
location. In this sample, We have created an event 'SelectionChanged' which can be used 
to get currently selected DropDownMenuItem. When a DropDownItem is clicked, 
SelectionChangedEvent is called with 'SelectedItem' passed as its argument.

Please let us know if this sample meets your requirement.

Regards,
Jegan Raj M


DropDownButtonAdvSample_308096c2.zip


DH Do Hai Dang March 9, 2020 04:37 AM UTC

I cannot download the attachment. I already logged in but without access


ON Olety Nikhilesh Olety Nagendra Syncfusion Team March 11, 2020 12:59 PM UTC

 
Thank you for the update. 
 
DropDownButtonAdv is Content control which means it acts as normal Menu control and will not have an inbuild SelectionChanged event, but you can assign any content such as listbox or similar controls and through the assigned content you can manage the SelectedChanged. 
 
Please refer the sample below. 
 
In the sample we have added a DropDownButtonAdv and a ListBox is added as content, through the ListBox the SelectedItem and ItemSource binding has been done. 
 
Please let us know if you have any concern. 
 
Regards, 
Nikhilesh O 


Loader.
Live Chat Icon For mobile
Up arrow icon