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

Incorrect information on Cascading ComboBoxes Page

1 Answer 56 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 31 Jan 2013, 02:22 PM
I've been trying to get my comboboxes cascading correctly using the guide on the Cascading ComboBoxes page and I think the information there may be incorrect. I wanted to use the approach where I set the parameters manually and copied the code at the very bottom of the page:

$("#child").kendoComboBox({
   cascadeFrom: "parent",
   dataTextField: "childName",
   dataValueField: "childID",
   dataSource: {
       transport: {
           read: {
               url: "",
               data: {
                   parentID: $("#parent").val()
               }
           }
       }
   }
});

This doesn't work, since I believe parentID: $("#parent").val() is interpreted at set up time, rather than when cascading. The correct code for the data portion would be: 
data: function() {
    parentID: $("#parent").val()
}

In the answer there's a reference to the "How it works" section - I couldn't find this, could a link be provided if it still exists? 

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 04 Feb 2013, 09:45 AM
Hello Scott,

 
Thank you for drawing our attention to this issue. It is already addressed and the fix will be available soon.
As a gratitude for your involvement I have updated your Telerik points.

All the best,
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
Scott
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or