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

More items in expander control

3 Answers 20 Views
ExpanderControl
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mateo
Top achievements
Rank 1
Mateo asked on 05 Apr 2015, 10:21 PM

Hello. Is it possible to add more than one item into expander. I have expander and currently when I expand it there is only one item. I'm using datat binding to bind content to expanded item, but I need more items in expander. For example, when I expand it it should display item1, item2, item3, item4. Is that possible? 

I understand that my trial licence has expired yesterday but I was too busy to ask it before. I apologize. I need to get this working so I could decide about bying UI for Windows Phone. Thank you very much.

3 Answers, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 08 Apr 2015, 04:59 PM
Hello Mateo,

Thank you for contacting us.

In this case you may create a view model class that contains all data you wish to display in the expander and set it as a context of the expandable content. Then using the ExpandableContentTemplate property you can edit the template of the expandable content. I have attached a sample project for demonstration.

I hope this helps. Please, let us know if you have any other questions.

Regards,
Rosy Topchiyska
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Mateo
Top achievements
Rank 1
answered on 12 Apr 2015, 12:10 PM

Hello,

thank you for your reply. I tried that. My problem is that I'm using DataBoundListBox with Expander. Also, I'm parsing json data and then I add it to the listbox items source. But only last item in json data is expanded with expander control. Any fix for that?

0
Ivaylo Gergov
Telerik team
answered on 16 Apr 2015, 07:56 AM
Hello,

Could you please modify the sample project to match your scenario? Thus, I can further investigate and help you to achieve your goal?

I am looking forward to your reply.

Regards,
Ivaylo Gergov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
ExpanderControl
Asked by
Mateo
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Mateo
Top achievements
Rank 1
Ivaylo Gergov
Telerik team
Share this question
or