Hi,
I am using radlistbox. i added the items into radlistbox in client side. it is fine. but how to add attributes for the item?
var list = $find("<%= RadListBoxSource.ClientID %>");
var items = list.get_items(); list.trackChanges();
var item = new Telerik.Web.UI.RadListBoxItem();
item.set_text(txt);
item.set_value(val);
list.get_items().getItem().set_attributes().setAttribute('display_list') = "list1";
list.get_items().add(item);
item.select();
list.commitChanges();
Bold items i am not able to add attributes for this one.
Please let me know if you have any tips,
Thanks,
Dhamu,
I am using radlistbox. i added the items into radlistbox in client side. it is fine. but how to add attributes for the item?
var list = $find("<%= RadListBoxSource.ClientID %>");
var items = list.get_items(); list.trackChanges();
var item = new Telerik.Web.UI.RadListBoxItem();
item.set_text(txt);
item.set_value(val);
list.get_items().getItem().set_attributes().setAttribute('display_list') = "list1";
list.get_items().add(item);
item.select();
list.commitChanges();
Bold items i am not able to add attributes for this one.
Please let me know if you have any tips,
Thanks,
Dhamu,