Hi
Using a Multicolumn Combobox with OpenAccess and trying to insert a blank item - as need to have the option of not selecting any item from the list - tried various solutions/posts with no success - code for combobox as below
Tried online demo http://www.telerik.com/help/aspnet-ajax/combobox-insert-default-item-when-databinding.html
(Using vb)
Thanks
Using a Multicolumn Combobox with OpenAccess and trying to insert a blank item - as need to have the option of not selecting any item from the list - tried various solutions/posts with no success - code for combobox as below
<
telerik:RadComboBox
runat
=
"server"
ID
=
"RadComboBox1"
Height
=
"190px"
Width
=
"100%"
MarkFirstMatch
=
"true"
DataSourceID
=
"OpenAccessLinqDataSource1"
EnableLoadOnDemand
=
"true"
HighlightTemplatedItems
=
"true"
DataValueField
=
"PartID"
DataTextField
=
"PartNumber"
AppendDataBoundItems
=
"True"
SelectedValue='<%# Bind("PartID") %>' ItemsPerRequest="10"
EnableVirtualScrolling="True" Filter="Contains" OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged"
AutoPostBack="True">
<
HeaderTemplate
>
<
ul
>
<
li
class
=
"col1"
>Part Number</
li
>
<
li
class
=
"col2"
>Part Description</
li
>
</
ul
>
</
HeaderTemplate
>
<
ItemTemplate
>
<
ul
>
<
li
class
=
"col1"
>
<%# DataBinder.Eval(Container.DataItem, "PartNumber")%>
</
li
>
<
li
class
=
"col2"
>
<%# DataBinder.Eval(Container.DataItem, "PartDescription")%></
li
>
</
ul
>
</
ItemTemplate
>
</
telerik:RadComboBox
>
Tried online demo http://www.telerik.com/help/aspnet-ajax/combobox-insert-default-item-when-databinding.html
(Using vb)
Thanks