Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Server Side Pagiantion

    Have implemented server side pagination on listGrid. I am fetching data through RestDataSource. I wanted to transform some fields in Client side after every call to server. Is there any event or way to do that.
    i.e Tranform every records attribute at client side after fetching data each time in paginated manner.

    #2
    DataSource.transformResponse() would be the right place to do this, by changing the XML or JSON data returned by the server (as dsResponse.data) to the expected RestDataSource format before allowing the default response parsing to happen.

    However, bear in mind, if you're doing this because you are trying to connect to a pre-existing server without changing it, as the docs say, start with DataSource, not RestDataSource. With RestDataSource, you want to stick to the pre-defined protocol.

    Comment


      #3
      Thanks, this helped

      Comment

      Working...
      X