This is a migrated thread and some comments may be shown as answers.

Binding list to RadDropDown Button

5 Answers 220 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
sundaril lakshmi
Top achievements
Rank 1
sundaril lakshmi asked on 14 May 2010, 01:51 PM
HI Team,

I'm Using Rad Drop Down Button. Can we bind dynamic data to it. Is there any thing similar to Itemssource kind of thing.
Please do needfull to me. Its an Ugent requirement.

5 Answers, 1 is accepted

Sort by
0
Accepted
Tina Stancheva
Telerik team
answered on 14 May 2010, 03:10 PM
Hi Sundaril Lakshmi,

Unfortunately, the RadDropDownButton doesn't support such functionality for now. However, I logged it as a bug and you will be able to track it in our PITS under the name Buttons: The Content and DropDownContent of the DropDownButton cannot be data bound.

I also updated your Telerik points accordingly to this report.

Please accept our apology for the caused inconvinience.

Kind regards,
Tina Stancheva
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
sundaril lakshmi
Top achievements
Rank 1
answered on 14 May 2010, 03:16 PM
Ok

Please, can you tell me alternate method.

My requirement is I'm having list of data and I want to show it in that using dropdown button. On click of item some action should be performe based on that selected item
0
Accepted
Tina Stancheva
Telerik team
answered on 14 May 2010, 03:55 PM
Hello Sundaril Lakshmi,

As a workaround you can use an appropriate control as a DropDownContent of the DropDownButton and bind its items to your business object.

I prepared a sample project illustrating this approach. I put a ListBox in the DropDownContent of the RadDropDownButton and I set its ItemsSource in code-behind. Also, I used the ListBox SelectionChanged() event handler to display the selected item in a textblock and to close the DropDown button whenever a ListBoxItem is selected.

Take a look at this and let me know if it works for you.

Kind regards,
Tina Stancheva
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
sundaril lakshmi
Top achievements
Rank 1
answered on 15 May 2010, 07:05 AM
Thank you Tina for your quick responce.

The example given by you, gave an idea for me to solve my problem.
0
Tina Stancheva
Telerik team
answered on 15 May 2010, 07:21 AM
Hi sundaril lakshmi,

I am glad that I was able to help.

Let us know if we can further assist you.

Regards,
Tina Stancheva
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Buttons
Asked by
sundaril lakshmi
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
sundaril lakshmi
Top achievements
Rank 1
Share this question
or