The tag helper's dataSource sets the following values: "page"=1 and "pageSize"=20, even though "server-operation" and "server-paging" are disabled in its configuration.
MultiSelect configuration:
<kendo-multiselect name="multiselect1" style="width:100%"
placeholder="Enter name..."
datatextfield="ShipName"
datavaluefield="OrderID"
min-length="2"
enforce-min-length="true">
<datasource type="DataSourceTagHelperType.Ajax" server-operation="false"
server-paging="false"
server-filtering="false"
server-aggregates="false"
server-grouping="false"
server-sorting="false">
<transport>
<read url="@Url.Action("GetData","Home")" />
</transport>
</datasource>
<popup-animation>
<open duration="500" />
<close duration="500" />
</popup-animation>
</kendo-multiselect>
Action:
public ActionResult GetData([DataSourceRequest] DataSourceRequest request)
{
var result = Enumerable.Range(0, 50).Select(i => new OrderViewModel
{
OrderID = i,
Freight = i * 10,
OrderDate = new DateTime(2016, 9, 15).AddDays(i % 7),
ShipName = "ShipName " + i,
ShipCity = "ShipCity " + i
});
var dsResult = result.ToDataSourceResult(request);
return Json(dsResult);
}
The "page" and "pageSize" values are set, which results in only 20 items being displayed, even though more are returned by the "read" action.
The "page" and "pageSize" should not be set, and the MultiSelect should display all the data returned by the "read" action.