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

RadExpanderControl inside Listbox

4 Answers 68 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.
Eng
Top achievements
Rank 1
Eng asked on 28 Oct 2013, 11:52 AM
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

Sort by
0
Kiril Stanoev
Telerik team
answered on 29 Oct 2013, 08:29 AM
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.
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
Deyan
Telerik team
answered on 30 Oct 2013, 09:57 AM
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.
0
Eng
Top achievements
Rank 1
answered on 06 Nov 2013, 10:28 AM
Thanks Deyan,That solve my problem 
Tags
ExpanderControl
Asked by
Eng
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Eng
Top achievements
Rank 1
Deyan
Telerik team
Share this question
or