Telerik Rad Combo binding data but not displaying
I have a telerik rad combo on my form
<radC:RadCombo ID="ddl" runat="server" DropdownListHeight="200px"/>
In CS
Under another rad combo's Selected Index Changed event
var dt = myFunc();
ddl.DataTextField="Name";
ddl.DataValueField="Id";
ddl.DataSource=dt;
ddl.Databind();
ddl.Items.Insert(0,new RadComboBoxItem ("-1","---Choose---"));
Please note:
I have 25 items coming from db and the datatable dt has only two columns,
Name and Id as described above. No errors are thrown , everything went
fine but the result is not visible on the UI.
Any insight/help?
No comments:
Post a Comment