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

Expander as ListBox item

2 Answers 87 Views
Expander
This is a migrated thread and some comments may be shown as answers.
Dave Brubacher
Top achievements
Rank 2
Dave Brubacher asked on 15 Jun 2010, 04:22 PM
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?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Viktor Tsvetkov
Telerik team
answered on 17 Jun 2010, 02:10 PM
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
0
David Brubacher
Top achievements
Rank 1
answered on 17 Jun 2010, 04:10 PM
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.

Tags
Expander
Asked by
Dave Brubacher
Top achievements
Rank 2
Answers by
Viktor Tsvetkov
Telerik team
David Brubacher
Top achievements
Rank 1
Share this question
or