listbox item checked on server side

2 posts, 0 answers
  1. cognos s
    cognos s avatar
    35 posts
    Member since:
    Oct 2009

    Posted 08 Oct 2009 Link to this post

    I am trying to re-populate the radlistbox items, so that the items are re-checked based on the values stored in database. How can I do this?

    radlistbox.selectedindex = 1 only selects the apporiate items but not checked.
  2. Genady Sergeev
    Genady Sergeev avatar
    1600 posts

    Posted 14 Oct 2009 Link to this post

    Hello cognos s,

    You can use the Checked property of the RadListBoxItem class to set whether an item is checked or not. Example:

    foreach (RadListBoxItem item in RadListBox1.Items)
        item.Checked = true;

    This will check all of the items in the given RadListBox.

    Kind regards,
    Genady Sergeev
    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.
Back to Top