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

RadListBox Unselect/Uncheck Selected Items

9 Answers 943 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Sergiy
Top achievements
Rank 1
Sergiy asked on 13 Dec 2012, 10:52 AM

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.

9 Answers, 1 is accepted

Sort by
0
Sergiy
Top achievements
Rank 1
answered on 16 Dec 2012, 09:59 PM
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?
0
Sega
Top achievements
Rank 1
answered on 16 Dec 2012, 11:40 PM
I have exactly the same problem. Is there any workaround for it? Thank you!
0
Sergiy
Top achievements
Rank 1
answered on 17 Dec 2012, 08:21 AM
I have been updated radcontrols today, seems to be true it's working. (v.2012.3.1129.45)
0
ITA
Top achievements
Rank 1
answered on 16 Aug 2013, 10:22 AM
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
0
Kalin
Telerik team
answered on 21 Aug 2013, 08:20 AM
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 >>
0
Uli
Top achievements
Rank 1
Veteran
answered on 07 Oct 2019, 11:11 AM
It doesn't work. I tested under VS 2019. Is it a bug?
0
Dimitar Dinev
Telerik team
answered on 08 Oct 2019, 01:47 PM

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.
0
Uli
Top achievements
Rank 1
Veteran
answered on 09 Oct 2019, 09:13 AM
It works as I tests again
0
Dimitar Dinev
Telerik team
answered on 09 Oct 2019, 11:07 AM

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.
Tags
ListBox
Asked by
Sergiy
Top achievements
Rank 1
Answers by
Sergiy
Top achievements
Rank 1
Sega
Top achievements
Rank 1
ITA
Top achievements
Rank 1
Kalin
Telerik team
Uli
Top achievements
Rank 1
Veteran
Dimitar Dinev
Telerik team
Share this question
or