Hello,
I have a simple datasource with the following schema:
I use the datasource for a dropdown.
When i select a value and programatically check the $("#CountyId").data('kendoDropDownList').value() I get the correct id (an int value)
Because I use the dropdown in a cascading scenario i need to transform the Id field on the model in a CountyId.
So after reading the documentation i decided to transform my schema into:
Yet, now when I check the selected value: $("#CountyId").data('kendoDropDownList').value() I get an [object Object]
Please tell me what I am doing wrong.
Thank you
I have a simple datasource with the following schema:
schema: { data: "Items", total: "Count", model: { Id: { type: "number" }, Name: { type: "string" }, } }I use the datasource for a dropdown.
When i select a value and programatically check the $("#CountyId").data('kendoDropDownList').value() I get the correct id (an int value)
Because I use the dropdown in a cascading scenario i need to transform the Id field on the model in a CountyId.
So after reading the documentation i decided to transform my schema into:
schema: { data: "Items", total: "Count", model: { CountyId: { type: "number", from: 'Id' }, Name: { type: "string" }, } }Yet, now when I check the selected value: $("#CountyId").data('kendoDropDownList').value() I get an [object Object]
Please tell me what I am doing wrong.
Thank you