This is a migrated thread and some comments may be shown as answers.
Multiple Select
4 Answers 60 Views
This is a migrated thread and some comments may be shown as answers.
paul
Top achievements
Rank 1
paul asked on 04 Sep 2009, 07:52 AM
Hello All,

I've a question about getting data from a database with a listbox.
I have a listbox with 5 items and a submit button. When I select one item and submit it returns the correct value.
When I select two items and submit it only returns the values of the first item.

Could you please tell me how to change this or where I find more information about this.

Thanks!

Paul

4 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 04 Sep 2009, 09:00 AM
Hi paul,

You need to use the SelectedItems property of the RadListbox which returns a list of the selected items.

Greetings,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
paul
Top achievements
Rank 1
answered on 04 Sep 2009, 09:47 AM
Hi,

Is there a quide how to use this? I used http://www.telerik.com/help/winforms/ui_radlistboxprogramming.html but it didnt make things clear to me.

I get these 3 errors:

Error 22 'Default2.RadListBox1' is a 'field' but is used like a 'type' 

Error 22 The type or namespace name 'RadListBox1' could not be found (are you missing a using directive or an assembly reference?) 
Error 23 The type or namespace name 'RadListBoxItem' could not be found (are you missing a using directive or an assembly reference?)

I have one listbox named RadListBox1 with two items and one Radgrid named RadGrid1

Thanks
0
Veselin Vasilev
Telerik team
answered on 04 Sep 2009, 12:05 PM
Hello paul,

This is a forum about RadListBox for ASP.NET Ajax. Do you use that control or the one for WinForms?

All the best,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
paul
Top achievements
Rank 1
answered on 04 Sep 2009, 01:04 PM
Your're right, wrong link...
But is there more information about de selecteditems event? I can't get it to work.

Thanks, Paul
Asked by
paul
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
paul
Top achievements
Rank 1
Share this question
or