This is a migrated thread and some comments may be shown as answers.

"index" property does not work with "suggest" property

1 Answer 77 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Julien
Top achievements
Rank 1
Julien asked on 05 Jan 2012, 01:35 PM
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)

<!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

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 10 Jan 2012, 12:47 PM
Hello Julien,

 
This is a known issue related with suggestion functionality of the ComboBox UI widget. This issue is already addressed and the fix will be available in the next official release. Customers can download the latest internal build, which includes the fix.

Regards,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
ComboBox
Asked by
Julien
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or