More items in expander control

4 posts, 0 answers
  1. Mateo
    Mateo avatar
    2 posts
    Member since:
    Jul 2014

    Posted 05 Apr 2015 Link to this post

    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.

  2. Rosy Topchiyska
    Admin
    Rosy Topchiyska avatar
    550 posts

    Posted 08 Apr 2015 Link to this post

    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.

     
  3. DevCraft banner
  4. Mateo
    Mateo avatar
    2 posts
    Member since:
    Jul 2014

    Posted 12 Apr 2015 in reply to Rosy Topchiyska Link to this post

    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?

  5. Ivaylo Gergov
    Admin
    Ivaylo Gergov avatar
    661 posts

    Posted 16 Apr 2015 Link to this post

    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.

     
Back to Top