I have the checkbox items in the listbox.
When the item is inserted into the listbox, I want the checkbox to be automatically checked to be true.
However during the postback, the checked value is false on the serverside. How can I retrieve the value set by the client side?
Here is my code.
When the item is inserted into the listbox, I want the checkbox to be automatically checked to be true.
However during the postback, the checked value is false on the serverside. How can I retrieve the value set by the client side?
Here is my code.
<
script language="javascript" type="text/javascript">
function AddItems(strDay, strDate, strType1, strType2) {
var list = $find("<%= lstDFSummary.ClientID %>");
var items = list.get_items();
list.trackChanges();
var item = new Telerik.Web.UI.RadListBoxItem();
var item2 = new Telerik.Web.UI.RadListBoxItem();
item.set_text(strDay + " , " + strDate + " - " + strType1 + " " + "<%= strShowName %>");
item.set_checked(
true);
items.add(item);
list.commitChanges();
}
</
script>