Hello,
I am trying to user the insertItem function (in Javascript) for the RadListBox.
Here is my code:
When I run this script, it is telling me that "Microsoft JScript runtime error: Object doesn't support this property or method" regarding the insertItems() function. listBox is not NULL in my script. Any ideas?
I need to insert 2000+ items into the list box and a bulk insert would do wonders.
Thanks!
Dave
I am trying to user the insertItem function (in Javascript) for the RadListBox.
Here is my code:
var
listBox = $find("<%= rlbSelectedContacts.ClientID %>");
var arr = [];
for (var i = 0; i < 10; i++) {
var item = new Telerik.Web.UI.RadListBoxItem();
item.set_text(
"text" + i);
arr[i] = item;
}
listBox.insertItems(arr);
When I run this script, it is telling me that "Microsoft JScript runtime error: Object doesn't support this property or method" regarding the insertItems() function. listBox is not NULL in my script. Any ideas?
I need to insert 2000+ items into the list box and a bulk insert would do wonders.
Thanks!
Dave