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

Multiple selection...

8 Answers 114 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Ajay Gandhi
Top achievements
Rank 1
Ajay Gandhi asked on 30 Jun 2010, 06:50 PM
I have 'program' radlistbox that I am populating dynamically. I also add a RadListBoxItem '[ ALL ]' to this listbox which is used to select all the items.

I populate the other radlistbox depending on the selection in the 'program' radlistbox.

The issue is: I selected '[ ALL ]' from 'program' listbox. This selected all the items in the listbox and populated the other listbox accordingly. But now when i select just one item from the 'program' listbox nothing happens, the 'SelectedIndexChanged' does not fire.
Please help???

-- Code to insert the RadListBoxItem

Me

 

.rlbProgram.Items.Insert(0, New RadListBoxItem("[ ALL ]", 0))

-- Code that I use to loop through the listbox to select them all when '[ ALL ]' is clicked.

 

Select

 

Case Me.rlbProgram.SelectedIndex

 

 

Case 0

 

 

For i As Integer = 1 To Me.rlbProgram.Items.Count - 1

 

 

Me.rlbProgram.Items(i).Selected = True

 

 

 

 

sPrograms.AppendFormat(

"<Program id='{0}'/>{1}", Me.rlbProgram.Items(i).Value, vbCrLf)

 

 

Next

 

 

 

 

 

End Select

 

8 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 05 Jul 2010, 03:07 PM
Hi Ajay Gandhi,

I am unable to reproduce the issue using your code. Attached you can find my test project. Can you reproduce the problem on it?

Best wishes,
Genady Sergeev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ajay Gandhi
Top achievements
Rank 1
answered on 13 Jul 2010, 09:46 PM
I have modifed the solution you sent and attached the code[Refer to code.gif] and output snapshot.

Please follow the steps below to re-produce:
1. Click '[ALL]'
2. You will see a label that says '[All] is selected' - [Refer to 1.gif]
3. Now click 'Text3'
4. Ideally I am expecting the label to say 'Text3', but it does not. - [Refer to 2.gif]

I hope you are able to re-create the problem I am facing. Please let me know.

Thank you.
0
Genady Sergeev
Telerik team
answered on 16 Jul 2010, 01:47 PM
Hello Ajay Gandhi,

Which version of the controls do you use? Using the latest version, the label correctly displays Text3. Perhaps the version that you use is somehow buggy. Could you please specify it so that we can research. Thank you.

Best wishes,
Genady Sergeev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ajay Gandhi
Top achievements
Rank 1
answered on 16 Jul 2010, 03:27 PM

Below is the version if that helps:

<

 

add assembly="Telerik.Web.UI, Version=2010.1.309.35

Please let me know.

 

0
Genady Sergeev
Telerik team
answered on 16 Jul 2010, 04:12 PM
Hi Ajay Gandhi,

I confirm that the version that you use contains the bug. The good news are that we have fixed it for the latest version (Q2). Is it possible to upgrade?

All the best,
Genady Sergeev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ajay Gandhi
Top achievements
Rank 1
answered on 16 Jul 2010, 04:20 PM
Where can I find the 'Q2' version? And what are the steps to upgrade to this version?
0
Accepted
Yana
Telerik team
answered on 19 Jul 2010, 01:24 PM
Hi Ajay,

You can download it from your Downloads section in your account - version 2010.2.713.

Kind regards,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ajay Gandhi
Top achievements
Rank 1
answered on 21 Jul 2010, 05:55 PM
Thank you so much. I downloaded the latest build and it works fine now.
Tags
ListBox
Asked by
Ajay Gandhi
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Ajay Gandhi
Top achievements
Rank 1
Yana
Telerik team
Share this question
or