Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
365
Igx Angular Grid
posted

Hi , am following this link mentioned in the example for Server side pagination. looks like some properties are deprecated. can you share the updated example along with below questions

in Compnent.html  we have igx paginator  and certain properties , events like below and corresponding action in ts file

 [(page)]="page"
            [(perPage)]="perPage"
            [totalRecords]="totalCount"
            (pagingDone)="paginate($event.current)"

instead of having in .ts file can we move all the logics to service or an separate file ? reason behind is to have seprate logics in seprate files can you share some example.

Parents
No Data
Reply
  • 2700
    Offline posted

    Hello,

    Thank you for posting to Infragistics Community!

    To address your question about some properties being deprecated, yes as per our API pages for the IgxGridComponent the totalPages, page, nextPage, paginate, pageChange, pagingDone, and all the other properties, methods and events of the grid related to paging have been deprecated in version 12.1.0. These properties have been exposed on the igx-paginator component instead. All information on its usage including sample demons can be found in our documentation about Paging.

    The Grid Remote Paging topic also uses the latest APIs in the demos, so it is a reliable source to refer to when implementing Server side pagination.

    Regarding your last query about code-isolation, what I can say is that any logic can be extracted to separate files, services, etc., depending on the application’s architecture and code structure requirements. However, please, keep in mind that this is an entirely application-level concern and as such is out of the scope of the discussion about the IgxGrid’s paging capabilities and Infragistics support in general.  

    What I can recommend is reviewing the official Angular documentation, for example the Creating an injectable service topic.

    If you require any further assistance with paging in the IgxGrid, please let me know.

    Best regards,
    Bozhidara Pachilova
    Associate Software Developer

Children