Hi there
I am using the following code to load RadComboBox and insert the RadComboBox with a text "select item" at the top which is fairly basic, but I am unable to see the text "select item" added when clicking the dropdown. Please Advice!
[Code and error image attached]
Thanks
Siva
| <telerik:RadComboBox ID="RadComboBox1" runat="server" Height="190px" Skin="Office2007" |
| Width="300px" MarkFirstMatch="true" NoWrap="true" DropDownWidth="420px" EnableLoadOnDemand="true" HighlightTemplatedItems="true" |
| ItemRequestTimeout="500"> |
| <HeaderTemplate> |
| <ul> |
| <li class="col1">Company Name</li> |
| </ul> |
| </HeaderTemplate> |
| <ItemTemplate> |
| <ul> |
| <li class="col1"><%# DataBinder.Eval(Container.DataItem, "CompanyName") %></li> |
| </ul> |
| </ItemTemplate> |
| </telerik:RadComboBox> |
| Dim sql As String = "SELECT * from Customers" |
| Dim adapter As New SqlDataAdapter(sql, ConfigurationManager.ConnectionStrings("NorthwindConnectionString").ConnectionString) |
| Dim dt As New DataTable() |
| adapter.Fill(dt) |
| RadComboBox1.DataTextField = "CompanyName" |
| RadComboBox1.DataValueField = "City" |
| RadComboBox1.DataSource = dt |
| RadComboBox1.DataBind() |
| RadComboBox1.Items.Insert(0, New Telerik.Web.UI.RadComboBoxItem("Select Item", "None")) |