This question is locked. New answers and comments are not allowed.
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
4 Answers, 1 is accepted
0
Hi Eng,
Kiril Stanoev
Telerik
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?
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.
0
Eng
Top achievements
Rank 1
answered on 29 Oct 2013, 08:42 AM
Yes i'm using regular Windows Phone ListBox and RadExpanderControl inside ItemTemplate .
0
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
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.
0
Eng
Top achievements
Rank 1
answered on 06 Nov 2013, 10:28 AM
Thanks Deyan,That solve my problem