My result is a JSON object that looks like:
My code:
How can i get data in kendoComboBox ?
Thanks!
[{"pk": 1, "model": "adr.country", "fields": {"codetxt": "RUS", "codeint": 643, "name": "\u0420\u043e\u0441\u0441\u0438\u044f"}}, {"pk": 2, "model": "adr.country", "fields": {"codetxt": "UKR", "codeint": 443, "name": "\u0423\u043a\u0440\u0430\u0438\u043d\u0430"}}, {"pk": 3, "model": "adr.country", "fields": {"codetxt": "BLR", "codeint": 523, "name": "\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u044c"}}]My code:
$("#country").kendoComboBox({ placeholder: "Выберите страну...", dataTextField: "codetxt", //not working dataValueField: "codeint ", //not working dataSource: { serverFiltering: true, type: "json", transport: { read: "http://localhost:8001/countries/" } } });How can i get data in kendoComboBox ?
Thanks!