RadExpanderControl inside Listbox

5 posts, 0 answers
  1. Eng
    Eng avatar
    21 posts
    Member since:
    Jun 2013

    Posted 28 Oct 2013 Link to this post

    I  used RadExpanderControl inside listbox my problem is when i expand item in listbox i want to collapse the other items so  only one item is expand when i click any item in listbox
  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 29 Oct 2013 Link to this post

    Hi Eng,

    Thank you for contacting us. Before we can answer your question could you please tell us if you're using the regular Windows Phone ListBox or Telerik's DataBoundListBox? Also, are you using the ExpaderControls inside the ItemTemplate of the list control?

    Regards,
    Kiril Stanoev
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. DevCraft banner
  4. Eng
    Eng avatar
    21 posts
    Member since:
    Jun 2013

    Posted 29 Oct 2013 Link to this post

    Yes i'm using regular Windows Phone ListBox and  RadExpanderControl inside ItemTemplate .
  5. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 30 Oct 2013 Link to this post

    Hi Eng,

    As this help article describes, using RadExpanderControl within a ListBox should be done by introducing an IsExpanded property on your view-models and twoway-binding it to the IsExpanded property of the expander within the item template. Provided that you have this setup, you can simply iterate over all items within your source and collapse the ones different from the currently expanded one.

    Regards,
    Deyan
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  6. Eng
    Eng avatar
    21 posts
    Member since:
    Jun 2013

    Posted 06 Nov 2013 Link to this post

    Thanks Deyan,That solve my problem 
Back to Top
DevCraft banner