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

selecting multipleitems in radlistbox

1 Answer 17 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Linga Reddy
Top achievements
Rank 1
Linga Reddy asked on 27 Oct 2009, 11:54 AM
I have one radlistbox  which contains users names and fetching records from the database and i am comparing databse names and radlistbox uaernames if both are matching iam selecting that name in listbox but here iam getting exception

Here is my code

 

For i As Integer = 0 To dtusers.Rows.Count - 1

 

 

If fmEmailSubscription_chklistusers.Items.Count > 0 Then

 

 

For m As Integer = 0 To CheckedIds.Count - 1

 

 

If CheckedIds(m) = dtusers.Rows(i).Item(0) Then

 

fmEmailSubscription_chklistusers.SelectedValue = dtusers.Rows(i).Item(0)

 

fmEmailSubscription_chklistusers.SetSelected(fmEmailSubscription_chklistusers.SelectedIndex, True)

 

 

End

 

If

 

 

Next

 

fmEmailSubscription_chklistusers.SelectedValue = dtusers.Rows(i).Item(0)

 

End If

 

 

Next

 



I

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 29 Oct 2009, 11:58 AM
Hello Linga Reddy,

I am not quite sure what are the types of the variables that you are using. However, I tested the case in a sample project an I was not able to get an exception. The RadListBoxItem were selected correctly. I am attaching a sample project to demonstrate the correct behavior.

If you continue experiencing issues, please ask the Licensed Developer from your company to send us a sample project that demonstrates the undesired behavior.

Sincerely yours,
Nikolay
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.
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Linga Reddy
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or