jQWidgets Forums

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts

  • onkar_anar
    Participant

    Hi,

    I tried the approach as per the link you share but i am facing the same issue, what i am trying to do
    is, i have written one service and trying to fetch data from api as per paging using rendergridrows function.
    Am getting data using service but rendergridrows function is running into loop continuously. what i am expecting is
    rendergridrows function should execute as per paging.
    is there any way to do server side paging using angular and asp .Net MVC.
    Here is the code snippet

    rendergridrows = (params: any): any => {
        var pageNumber= params.startindex / totalRecords;
        if (pageNumber == NaN) {
          pageNumber = 0;
        }
        this._dataService.getDetails('dataId', 'userId', pageNumber, totaRecords)
            .subscribe(res => {
              this.gridDataDetails= res.Data;
              this.myGrid.updatebounddata();
            });
        return this.gridDataDetails;
      }
Viewing 1 post (of 1 total)