- Home
- Forum
- ASP.NET Core - EJ 2
- Pager's 'pageSizes' gives an javascript error on ej2-dropdowns.min.js
Pager's 'pageSizes' gives an javascript error on ej2-dropdowns.min.js
Hello , I have an simple grid, it works with this basic paging option:
<e-grid-pagesettings pageSize="10" ></e-grid-pagesettings> |
when i add pageSizes="true" options to pager
<e-grid-pagesettings pageSize="10" pageSizes="true"> </e-grid-pagesettings> |
Pager dropdown start showing loading indicator and it does not stop. When i see the console on browser i see an error:
Is it a bug or am i missing something?
Hi
ERTEM,
Based on the information provided, it seems you’re facing a script error when
enabling the page size dropdown list while using individual global EJ2 scripts.
This issue may arise due to a missing dependency script (e.g.,
ej2-lists.min.js). We recommend verifying that all the required dependency
scripts are included and in the correct order. Please refer to the code example
below for more details.
Please
get back to us if you need further assistance on this.
Regards,
Pavithra S
Many Thanks , it solved the issue now it works fine.
Additional question that is there an easy way to load these scripts from project folder(local disk) instead of downloading from cdn maybe as nuget package? I know I can download these scripts one by one to disk but it is hard to manage when a new update released
ERTEM,
You can use our client side resources from both NPM and Customer Resource
Generator (CRG) to render our EJ2 components. We have provided the
documentation that explain how to include client-side resources from NPM and
CRG site in Core project. Please refer the below documentation link.
It seems there's an issue with the 'pageSizes' implementation.
It seems there's an issue with the 'pageSizes' implementation.
Sam Rick,
The scenario initially reported in this thread is not an actual issue; it happens because the dependency component script is missing from the sample. Once the missing file is included, the issue will be resolved.