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

Binded Combobox items with attribute not visible at Client-side

1 Answer 63 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Kavi
Top achievements
Rank 1
Kavi asked on 03 Jul 2010, 07:14 AM
Hi,
       I have binded a Radcombo-box items with some attributes at Client-side , After a new item was added on the Combo-box
 The item text only displayed, but the attribute columns are blank, they were not visible. Pls help to solve this problem.

    var items = combo.get_items();
    combo.trackChanges();
    var comboItem = new Telerik.Web.UI.RadComboBoxItem();
    comboItem.set_text("New");
    comboItem.set_value("Value");
    comboItem.get_attributes().setAttribute("Pieces", "2");
    comboItem.get_attributes().setAttribute("GrWt", "2.00");
    items.add(comboItem);
    combo.commitChanges();

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 06 Jul 2010, 01:19 PM
Hello Kavi,

Templates are applied only on the server-side.

Please consider wrapping the RadComboBox and the trigger control with an UpdatePanel/RadAjaxPanel and add the new Items on the server (and call their DataBind method to apply the Template).

Sincerely yours,
Simon
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ComboBox
Asked by
Kavi
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or