Expander as ListBox item

3 posts, 0 answers
  1. Dave Brubacher
    Dave Brubacher avatar
    2 posts
    Member since:
    Nov 2004

    Posted 15 Jun 2010 Link to this post

    I have a ListBox.ItemTemplate that defines an expander as the top level item, into which I plunk a whole lot of databound text.

    I want the expander to open/close only when I click the button and the whole thing to be selected when I click the header. Currently I have to open the expander and click on the content to select it as a listbox item.

    Is this possible and if so how might I go about it?

  2. Viktor Tsvetkov
    Viktor Tsvetkov avatar
    382 posts

    Posted 17 Jun 2010 Link to this post

    Hi Dave,

    This functionality is not supported out of the box and it will take certain amount of code to accomplish it. Have considered using RadDropDownButton and a TextBlock in the data template of the ListBoxItem. I've prepared a small project that demonstrates this functionality. Have a look at it and let me know if this will work for you. If not, contact us as soon as possible so we can further assist you.

    On a side note, I'd like to inform you that we've just released an online tool that allows you to reduce the size of your Silverilght applications. For more information, please visit http://blogs.telerik.com/blogs/posts/10-06-10/telerik_assembly_minifier.aspx

    All the best,
    Viktor Tsvetkov
    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. David Brubacher
    David Brubacher avatar
    29 posts
    Member since:
    Mar 2010

    Posted 17 Jun 2010 Link to this post

    Thanks Victor

    I suspected as much, though your idea of a drop down button sounds very promising. I will try it out and let you know.

    Thanks for the info on the minifier too. I'm using MEF to break up my app too, so both together should really help.

Back to Top