Hi all,
I'm having a KUI ComboBox with 4 values and pre-selecting the fourth value by using the "index : 3" property => it works as expected (the fourth value is selected when the page is loaded.
Now, I'm adding the "suggest : true" property => it does not work as expected (the first value is selected instead of the fourth value)
Is it the desired behavior to have "suggest : true" to override the "index" property ?
Thanks,
Julien
I'm having a KUI ComboBox with 4 values and pre-selecting the fourth value by using the "index : 3" property => it works as expected (the fourth value is selected when the page is loaded.
Now, I'm adding the "suggest : true" property => it does not work as expected (the first value is selected instead of the fourth value)
<!DOCTYPE html>
<
html
>
<
head
>
<
link
href
=
"http://cdn.kendostatic.com/2011.3.1129/styles/kendo.common.min.css"
rel
=
"stylesheet"
/>
<
link
href
=
"http://cdn.kendostatic.com/2011.3.1129/styles/kendo.default.min.css"
rel
=
"stylesheet"
/>
<
script
src
=
"http://code.jquery.com/jquery-1.7.1.min.js"
></
script
>
<
script
src
=
"http://cdn.kendostatic.com/2011.3.1129/js/kendo.all.min.js"
></
script
>
</
head
>
<
body
>
<
input
id
=
"input"
/>
<
script
>
$(document).ready(function() {
// create ComboBox from input HTML element
$("#input").kendoComboBox({
dataSource:[
{ text: "Cotton", value: "1" },
{ text: "Polyester", value: "2" },
{ text: "Cotton/Polyester", value: "3" },
{ text: "Rib Knit", value: "4" }],
suggest:true,
index:3
});
});
</
script
>
</
div
>
</
body
>
</
html
>
Is it the desired behavior to have "suggest : true" to override the "index" property ?
Thanks,
Julien