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

Is automatic DataBinding to a DropDownButton possible?

9 Answers 118 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
guy
Top achievements
Rank 2
guy asked on 08 May 2008, 11:55 AM
Is automatic DataBinding with a TelerikDropDownButton possible?
When I'm binding a DataSoure to a TelerikDropDownButton does it only shows the first line in the table. 
Must I create manually all items by a function when I load the form or is here an automatic mechanism?

thanks in advance
guy

9 Answers, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 09 May 2008, 04:16 PM
Hi guy,

Thank you for writing.

Currently, RadDropDownButton does not support DataBinding for its DropDown Items. You are the first customer that asking for such a feature. If other customers express an interest in this feature, we will include it in our to-do list.

If you have other questions, do not hesitate to contact me again.

Greetings,
Martin Vasilev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Marc Roussel
Top achievements
Rank 2
answered on 07 Apr 2010, 02:18 PM
I'm actually having this need and I was trying to figure out how to bind !
 I mean, I have a RadGridView in the DropDownContent and this RadGridView.SelectedItem is bound to the DataContext.Object.

This is ok but the Content of the RadDropDownButton doesn't show the right value I mean How is the binding made between the selected row of the RadGridView in the DropDownContent which is bound with the Content of the RadDropDownButton ?

Actually everything needs to be made by hand that means, SelectionChanged and set the proper value from the selection to the content
0
Valentin.Stoychev
Telerik team
answered on 12 Apr 2010, 01:48 PM
Hi Marc Roussel,

Yes - you need to to it manually - there is not integration between the dropdown button and its content.

All the best,
Valentin.Stoychev
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
laxman
Top achievements
Rank 1
answered on 21 Jan 2011, 03:43 PM
Hi,
I also need similar thing.
I am adding RadGallery to the DropDown's DropDownContent.
I am binding RadGallery ItemSourceProperty.

The problem is that RadGallery is loaded with data when I click the DropDown button.
So I can set the initial value on RadGallery since RadGallery control doesn't have any data unless dropdown button is clicked.
This happens only on initialize. Once DropDown button is clicked everything works fine.

Thanks,

Laxman
0
Petar Mladenov
Telerik team
answered on 26 Jan 2011, 06:10 PM
Hello guy,

It`s true that the Gallery loads when the dropdown is clicked, this is developed following the product`s design specifications. Could you please try to elaborate more on your scenario especially why do you need the gallery to be loaded earlier? This way we could provide you a better advice or a workaround. Thank you for your cooperation.

Kind regards,
Petar Mladenov
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
laxman
Top achievements
Rank 1
answered on 26 Jan 2011, 07:04 PM
my problem is that initially I cannot set item selected...even if i do gallery.SelectedItem=selecteditem;
if i open the dropdown once and than try to set any item selected it works fine..

When dropdown is clicked i want to show intial item as selected.
I am setting Itemsource property of gallery to my custom class
0
Petar Mladenov
Telerik team
answered on 27 Jan 2011, 03:08 PM
Hello guy,

You can try to use the loaded event of the RadGallery and set the SelectedItem or SelectedIndex property.
Please let us know if this approach satisfies you or not.

Regards,
Petar Mladenov
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Marc Roussel
Top achievements
Rank 2
answered on 28 Jan 2011, 02:22 PM
Sorry to disturb you here but when the RadGridView is in the DropDown of a RadDropDownButton.
If the DropDown isn't opened and I do not double click a line in the grid, by code, we are unable to set the SelectedItem of the RadGridView

It stays null.

However if I open the DropDownButton which shows the RadGridView, and double click there, the SelectedItem can now be set
Why this behaviour ? Is this a bug ?
0
Petar Mladenov
Telerik team
answered on 03 Feb 2011, 09:51 AM
Hello Marc Roussel,

First of all, please excuse me for the delayed response.I am unable to reproduce this issue or maybe I have missed something. Could you please examine the attached solution and correct me if needed. A runnable sample reproducing the problem would be highly appreciated.

All the best,
Petar Mladenov
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
guy
Top achievements
Rank 2
Answers by
Martin Vasilev
Telerik team
Marc Roussel
Top achievements
Rank 2
Valentin.Stoychev
Telerik team
laxman
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or