Hi,
I'm not sure if this is possible, but, Can I add the KendoUI ComboBox widget to an ASP.NET DropDowList?
According to the KendoUI Documentation is possible to create a combobox from existing select HTML element:
I'm not sure if this is possible, but, Can I add the KendoUI ComboBox widget to an ASP.NET DropDowList?
According to the KendoUI Documentation is possible to create a combobox from existing select HTML element:
<!-- HTML -->
<
select
id
=
"combobox"
>
<
option
>Item 1</
option
>
<
option
>Item 2</
option
>
<
option
>Item 3</
option
>
</
select
>
So, if I have a ASP.NET DropDowList:
<
asp:DropDownList
ID
=
"DropDownList2"
class
=
"combobox-kendo"
runat
=
"server"
>
<
asp:ListItem
>A</
asp:ListItem
>
<
asp:ListItem
>B</
asp:ListItem
>
<
asp:ListItem
>C</
asp:ListItem
>
</
asp:DropDownList
>
and if in a browser is converted to:
<
select
name
=
"DropDownList2"
id
=
"DropDownList2"
class
=
"combobox-kendo"
>
<
option
value
=
"A"
>A</
option
>
<
option
value
=
"B"
>B</
option
>
<
option
value
=
"C"
>C</
option
>
</
select
>
and, according to the KendoUI documentation, I should add:
$(document).ready(function(){
$("#combobox").kendoComboBox();
});
Then..
<script type=
"text/javascript"
>
$(document).ready(
function
() {
$(
".combobox-kendo"
).kendoComboBox();
});
</script>
it should work, right?
In VST2010 when I debug the ASP.NET page, IE9 show me the next error:
Error: 'jQuery' is undefined in the kendo.all.min.js file...
Any idea what could be the problem?