selecting multipleitems in radlistbox

2 posts, 0 answers
  1. Linga Reddy
    Linga Reddy avatar
    7 posts
    Member since:
    May 2009

    Posted 27 Oct 2009 Link to this post

    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)










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


    End If





  2. Nikolay
    Nikolay avatar
    1802 posts

    Posted 29 Oct 2009 Link to this post

    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,
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top