Completed
Last Updated: 10 Feb 2021 14:54 by ADMIN
Release 2021.R1.SP.next
Konrad
Created on: 04 Dec 2020 14:56
Category: AutoComplete
Type: Bug Report
0
MultiSelect tag helper's dataSource sets default "page" and "pageSize" values

Bug report

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.

Reproduction of the problem

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);
}

Current behavior

The "page" and "pageSize" values are set, which results in only 20 items being displayed, even though more are returned by the "read" action.

Expected/desired behavior

The "page" and "pageSize" should not be set, and the MultiSelect should display all the data returned by the "read" action.

Environment

  • Kendo UI version: 2020.3.1118
  • jQuery version: x.y
  • Browser: [all]
0 comments