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

listbox item checked on server side

1 Answer 99 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
cognos s
Top achievements
Rank 1
cognos s asked on 08 Oct 2009, 07:38 PM
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.

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 14 Oct 2009, 12:24 PM
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.
Tags
ListBox
Asked by
cognos s
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or