Bold BI®Unlock stunning dashboards with Bold BI®: 35+ widgets, 150+ data sources, AI agent & more. Try it for free!
Hello,
var customerList = ej.DataManager({ url: "Administration/GetGroups", crossDomain: true }); $(function () { obj = $('#groupCodeList').ejDropDownList({ dataSource: customerList, fields: { text: "ContactName", value: 'ContactName' }, itemsCount: 20, popupHeight: "200px", width: "250px", enableFilterSearch: true, enableServerFiltering: true, allowVirtualScrolling: true, search: function (args) { if (args.searchString.length < 3) { //check search string length args.cancel = true; } } }).data("ejDropDownList"); obj._updateSelectedIndexByValue = function () { } });
And my C# controller: public IActionResult GetGroups(ExtendedDataManagerRequest dm) { return null; }
In the console browser call I see:
Why don't I have the take and skip?
I also took the opportunity to ask, how do I add the extra parameter that I want to send in javascript?
Hi Fernando,
Greetings from Syncfusion support.
Query 1 : Why don't I have the take and skip?
For the above requirement we suggest you to set Take (top) parameter
to the filter query , which will get the required number of items from the server
.For more details , kindly refer to the below documentation.
https://ej2.syncfusion.com/aspnetcore/documentation/drop-down-list/filtering#limit-the-minimum-filter-character
Query 2: how do I add the extra parameter that I want to send in javascript?
Yes we can send additional parameter to the server as like below code , Also
refer to the attached documentation below for more details about it.
const SERVICE_URI = 'http://services.odata.org/V4/Northwind/Northwind.svc/Orders';
var table = (document.getElementById('datatable'));
new ej.data.DataManager({ url: SERVICE_URI, adaptor: new ej.data.ODataV4Adaptor }) .executeQuery(new ej.data.Query().addParams('$top', '7')) .then((e) => { (e.result).forEach((data) => { table.appendChild(compiledFunction(data)[0]); }); });
|
Deepak R.