1 Reply Latest reply: Mar 29, 2015 7:29 PM by Alexander Karlsson Branched from an earlier discussion. RSS

    How can I retrieve data for an extension object in several chunks?

      i have the same problem.

      did you find a solution for that ?

        • Re: How can I retrieve data for an extension object in several chunks?
          Alexander Karlsson

          So normally the page of data that is exposed to the extension is defined in the definition.xml file through a pageheight value. If no value is present it will default to 20 rows I believe.

           

          Now, you can also control this and which pages to fetch. This is some psuedo code.

           

          //Set your initial PageSize.
          this.Data.SetPagesizeY( 2000 );
          
          //cache the Data class.
          var data = this.Data
          
          //Click the extension and call SetOffset(page). This should cause a re-render of the extension.
          $(this.Element).on('click', function() {
           data.SetOffset({ y: data.PageOffset.y + data.PageSize.y, x: data.PageOffset.x });
          })
          

           

          Attached is also a sample extension which demonstrates paging.