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

Remove Items

4 Answers 62 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Cush
Top achievements
Rank 1
Cush asked on 11 Jul 2011, 02:47 PM
Hi All

I have two list boxes on a page one is availiablelist the other is selected list,
i need to be able to clear the selected list and pass its values back to the availiable list based on a check box value!
I have tried looping each item but this seems to throw an exception?
For Each SelItem AS RadListBoxItem in Selectedlist
  
availiablelist.Items.Add(SelItem)
  
Next

Could somone give me som guidance on how best to achive this please.

Many Thanks

Regards

Cush

4 Answers, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 13 Jul 2011, 04:04 PM
Hello,

I am sending you a sample project for your scenario.

Hope it helps.

Kind regards,
Peter Filipov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Cush
Top achievements
Rank 1
answered on 13 Jul 2011, 06:00 PM
Hi Peter

Thank you very much for getting back to me and for the sample project.
However having read my post again i havent explained the situation very well!

As before i have two list boxes "availiable records" & "selected records", the user selects items from the availiable list and passes them to the selected list, i need to be able to clear all the items in the selected list and pass them back to the availiable list if the user selects a checkbox (Which is not in either list)?

I hope this makes sense??

I would appriciate your help on this.

Many Thanks

Cush
0
Accepted
Peter Filipov
Telerik team
answered on 15 Jul 2011, 01:52 PM
Hi Cush,

I am sending you the sample project changed. It implements the scenario from your last post on 13-Jul-2011.

Regards,
Peter Filipov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Cush
Top achievements
Rank 1
answered on 15 Jul 2011, 08:17 PM
Hi Peter

Many thanks for the reply and the example,
It worked a treat.

Thank you

Best Regards

Cush
Tags
ListBox
Asked by
Cush
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Cush
Top achievements
Rank 1
Share this question
or