Selecting First Item in the RadListBox on CollectionViewSource.Filter

4 posts, 0 answers
  1. Sergiy
    Sergiy avatar
    38 posts
    Member since:
    Jan 2012

    Posted 17 Dec 2012 Link to this post

    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
  2. George
    Admin
    George avatar
    1332 posts

    Posted 19 Dec 2012 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Joshua
    Joshua avatar
    1 posts
    Member since:
    Sep 2011

    Posted 06 Mar 2014 in reply to George Link to this post

    I'm also running into this issue. Your support ticket link doesn't appear to work anymore, can you provide an updated link?
  5. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 11 Mar 2014 Link to this post

    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.

Back to Top