Hi,
I have a combbox where the choices are driven by a remote datasource as follows:
main.php
-----------------------
<script>
var dataSource = new kendo.data.DataSource({
transport: {
read: {
url: "select_data3.php?type=123",
dataType: "json"
}
}
});
dataTextField: "Text",
dataValueField: "Value",
filter: "contains",
dataSource: dataSource,
placeholder: "Select a product",
});
</script>
<select id="event_id" style="width: 450px;">
</select>
select_data3.php
-----------------
<?php header('Content-Type: application/json');?>
[{"Text":"AUT","Value":"Austria"}, {"Text":"BEL","Value":"Belgium"}, {"Text":"BGR","Value":"Bulgaria"}]
It's unable to load remote data into combobox
And i had tried to
1. copy http://dojo.telerik.com/IzAWU to my localhost
2. download //demos.telerik.com/kendo-ui/service/Products to local folder
3. It's good for execute step1 directly
4. Show nothing, when i modify params to "//localhost/test/Products" and "json"