Binding list to RadDropDown Button

6 posts, 2 answers
  1. sundaril lakshmi
    sundaril lakshmi avatar
    10 posts
    Member since:
    Mar 2010

    Posted 14 May 2010 Link to this post

    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.
  2. Answer
    Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 14 May 2010 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. sundaril lakshmi
    sundaril lakshmi avatar
    10 posts
    Member since:
    Mar 2010

    Posted 14 May 2010 Link to this post

    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
  5. Answer
    Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 14 May 2010 Link to this post

    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.
  6. sundaril lakshmi
    sundaril lakshmi avatar
    10 posts
    Member since:
    Mar 2010

    Posted 15 May 2010 Link to this post

    Thank you Tina for your quick responce.

    The example given by you, gave an idea for me to solve my problem.
  7. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 15 May 2010 Link to this post

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