Hi. New here.
Below is a ListView and a DropDownList, as simple as possible, calling the same Web API for their data.
The DropDownList works well. The ListView does show anything. What am I doing wrong?
The ListView API call is: http://localhost/api/vehicles?sort=&group=&filter=
The DropDownList API call is : http://localhost/api/vehicles
I would have assumed the .ServerOperation(false) would have removed the sort&group&filter from the Get. In any case, the JSON returned by both Gets is exactly the same.
Thanks
PS: in case this is relevant, the Web API controller was generated by the Telerik Data Access Wizard and unmodified
Below is a ListView and a DropDownList, as simple as possible, calling the same Web API for their data.
The DropDownList works well. The ListView does show anything. What am I doing wrong?
The ListView API call is: http://localhost/api/vehicles?sort=&group=&filter=
The DropDownList API call is : http://localhost/api/vehicles
I would have assumed the .ServerOperation(false) would have removed the sort&group&filter from the Get. In any case, the JSON returned by both Gets is exactly the same.
Thanks
PS: in case this is relevant, the Web API controller was generated by the Telerik Data Access Wizard and unmodified
<script type="text/x-kendo-template" id="vehicletemplate"> <div> <p>Dummy Placeholder</p> </div></script><div class="col-md-4"> @(Html.Kendo().ListView<Object>().Name("VehicleList") .ClientTemplateId("vehicletemplate") .TagName("div") .DataSource(ds => ds .ServerOperation(false) .Read(read => read .Url("/api/vehicles").Type(HttpVerbs.Get) ) ) ) @(Html.Kendo().DropDownList() .Name("ddList") .DataTextField("Registration") .DataSource(ds => ds .Read(read => read .Url("/api/vehicles").Type(HttpVerbs.Get) ) ) )</div>