RadListBox Unselect/Uncheck Selected Items

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

    Posted 13 Dec 2012 Link to this post


    Hello, I'm trying to unselect selected item in ListBox, but I have no success yet ( UI ListBox still selected).
    I am trying in this way:
    private void OnStandarBoxSelectionChanged(object sender, SelectionChangedEventArgs e)
    {
     
        if (StandardBox.SelectedItem == null) return;
     
        ...
     
        StandardBox.SelectedItem = null;
    }

    Could you explain What better way to solve this problem?
    Thank You.

  2. Sergiy
    Sergiy avatar
    38 posts
    Member since:
    Jan 2012

    Posted 16 Dec 2012 Link to this post

    People, listen. I'm sick and tired of my waiting for your reply. I don't see the actual reason of my waiting too long. Can you answer me, why should I pay my money for nothing?
  3. Sega
    Sega avatar
    4 posts
    Member since:
    Nov 2011

    Posted 16 Dec 2012 Link to this post

    I have exactly the same problem. Is there any workaround for it? Thank you!
  4. Sergiy
    Sergiy avatar
    38 posts
    Member since:
    Jan 2012

    Posted 17 Dec 2012 Link to this post

    I have been updated radcontrols today, seems to be true it's working. (v.2012.3.1129.45)
  5. ITA
    ITA avatar
    387 posts
    Member since:
    Aug 2009

    Posted 16 Aug 2013 Link to this post

    Hi,

    i'm using the latest Version of RadControls for WPF. I have to RadListBoxes with to different Sources. Now i want to unselect all
    Items from ListBox1 if i click on one item in ListBox2. I tried on "SelectionChanged" -> ListBox1.SelectedItem = null; but without
    any success.

    How do i solve this Problem?

    thanks
    best regards
    WW
  6. Kalin
    Admin
    Kalin avatar
    1353 posts

    Posted 21 Aug 2013 Link to this post

    Hi Ita,

    We have tested the described scenario and it does work as expected, set SelectedItem to null clears the selection of the ListBox. Please see attached our test project demonstrating the exact approach.

    Hope this helps.

    Regards,
    Kalin
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  7. Uli
    Uli avatar
    10 posts
    Member since:
    Sep 2019

    Posted 07 Oct 2019 in reply to Kalin Link to this post

    It doesn't work. I tested under VS 2019. Is it a bug?
  8. Dimitar Dinev
    Admin
    Dimitar Dinev avatar
    72 posts

    Posted 08 Oct 2019 Link to this post

    Hello Uli,

    I tested the application Kalin has provided but it works as expected on my end. I tested it with VS 2019, with old and new binaries. Attached, you can find a .gif file demonstrating my experience.

    Could you please elaborate on the issues you're having?

    Looking forward to your reply.

    Regards,
    Dimitar Dinev
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  9. Uli
    Uli avatar
    10 posts
    Member since:
    Sep 2019

    Posted 09 Oct 2019 in reply to Dimitar Dinev Link to this post

    It works as I tests again
  10. Dimitar Dinev
    Admin
    Dimitar Dinev avatar
    72 posts

    Posted 09 Oct 2019 Link to this post

    Hi Uli,

    I'm happy that the provided solution now works for you.

    Please let me know if I can further assist you with anything else.

    Regards,
    Dimitar Dinev
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top