or
div#tabs li.k-item { width:300px; color: red;}
<script id="popup_editor" type="text/x-kendo-template"> <div class="k-edit-label"> <label for="idState">State</label> </div> <input id="dropDownListState" name="IdState">
</script> $("#dropDownListState" + id).kendoDropDownList({ dataSource: { transport: { read: { type: "GET", url: function () { return RecebimentoRoutes.LoadState()}, contentType: 'application/json; charset=utf-8' } } }, dataTextField: "Text", dataValueField: "Value", change: function () { value = this.value(); CityDataSource.filter({ field: "Value", operator: "eq", value: parseInt(value) }); listCity.enable(); } }).data("kendoDropDownList");Hello,
Grid not displayed any record.
I want grid with autogeneratecolumn = true.
any help would be appreciated......
public ActionResult getData([DataSourceRequest]DataSourceRequest request) { List<Class1> c1s = new List<Class1>(); for (int i = 0; i < 5; i++) { Class1 c1 = new Class1(); c1.ID = i; c1.Name = "Name" + i; c1s.Add(c1); } return Json(c1s.ToDataSourceResult(request), JsonRequestBehavior.AllowGet); }
[Serializable] public class Class1 { public int ID { get; set; } public string Name { get; set; } }
<div id="mygrid"></div><script type="text/javascript"> $(document).ready(function () { $("#mygrid").kendoGrid({ dataSource: { type: "odata", serverPaging: true, serverSorting: true, pageSize: 100, transport: { read: "/Home/getData" } }, height: 280, scrollable: { virtual: true }, sortable: true }); });</script>
Note : There is not any JS error.
If i tried with below read method then its works.
read: "http://demos.kendoui.com/service/Northwind.svc/Orders"
Thanks,
Jason