Is automatic DataBinding to a DropDownButton possible?

10 posts, 0 answers
  1. guy
    guy avatar
    3 posts
    Member since:
    Sep 2006

    Posted 08 May 2008 Link to this post

    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
  2. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 09 May 2008 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 07 Apr 2010 Link to this post

    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
  5. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 12 Apr 2010 Link to this post

    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.
  6. laxman
    laxman avatar
    9 posts
    Member since:
    Jan 2011

    Posted 21 Jan 2011 Link to this post

    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
  7. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 26 Jan 2011 Link to this post

    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>>
  8. laxman
    laxman avatar
    9 posts
    Member since:
    Jan 2011

    Posted 26 Jan 2011 Link to this post

    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
  9. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 27 Jan 2011 Link to this post

    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>>
  10. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 28 Jan 2011 Link to this post

    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 ?
  11. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 03 Feb 2011 Link to this post

    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>>
Back to Top
UI for WinForms is Visual Studio 2017 Ready