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

Selecting First Item in the RadListBox on CollectionViewSource.Filter

3 Answers 199 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Sergiy
Top achievements
Rank 1
Sergiy asked on 17 Dec 2012, 01:39 PM
Hello,
My RadListBox is Binded with CollectionView Source. When I am Changing the Filter it is Automatically selecting the First Item in the Listox.
When I've used simple listBox, I set the property IsSynchronizedWithCurrentItem to False and it helped. But RadLisbBox has't got this property.

Is there any solution for this problem?
thank you

3 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 19 Dec 2012, 01:02 PM
Hi Sergiy,

 
In order to disconnect the synchronization with the CurrentItem I would suggest inheriting the RadListBox control and adding the following lines of code:

public class CustomListBox : RadListBox, ISelectorInteraction
{
    bool ISelectorInteraction.IsDefaultCollectionView
    {
        get
        {
            return true;
        }
    }
}

This will do the trick. Meanwhile, I added a PITS item as a feature request for adding a new property in the RadListBox control. You could track its progress and vote for it here:  http://www.telerik.com/support/pits.aspx#/public/wpf/13764

Hope this helps.


Kind regards,
George
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Joshua
Top achievements
Rank 1
answered on 06 Mar 2014, 10:22 PM
I'm also running into this issue. Your support ticket link doesn't appear to work anymore, can you provide an updated link?
0
Kalin
Telerik team
answered on 11 Mar 2014, 11:12 AM
Hello Joshua,

We have migrated the items from the Public Issue Tracking System into the new Feedback portal - that is why the link is not working. You can find the same item on the following link:
http://feedback.telerik.com/Project/143/Feedback/Details/113560-implement-issynchronizedwithcurrentitem-property-in-order-to-disconnect-the-conne

You can follow the item and get notified whenever its status is changed.

Hope this helps.

Regards,
Kalin
Telerik

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

Tags
ListBox
Asked by
Sergiy
Top achievements
Rank 1
Answers by
George
Telerik team
Joshua
Top achievements
Rank 1
Kalin
Telerik team
Share this question
or