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
60
Passing additional post parameters in remote data source
posted

When using the igGrid with remote data source, is there any way to include additional parameters in the POST body of the request made to the server for retrieving the data?

  • 10240
    posted

    Hi Ricky Li,

    This is to let you know that I have received your inquiry and will be looking into this for you. I will follow-up with you here on the thread on or about Wednesday. Thanks!

    • 10240
      posted in reply to [Infragistics] Troy Rodda

      Hi Ricky Li,

      For the context of this question, are you doing remote paging, remote filtering, something else? Also, can you give me a brief overview of what you want to accomplish and in what way what you want to do with additional parameters with the remote ds is similar, different, or an alternative to using an ajax call? Any supporting code you want to show is always helpful.

      Thanks!

      • 60
        posted in reply to [Infragistics] Troy Rodda

        Hi Troy,

        We're building a tool for the user to construct their own report. The tool allows the user to select the columns and row selection criteria for the data to be shown in the grid. What we'd like to do is to serialize the user selection into a json string and have the grid pass this to the server when retrieving the data. We're also doing remote paging and filtering. 

        Regards,
        - Ricky 

        • 10240
          posted in reply to Ricky Li

          Hi Ricky,

          It should be possible to pass additional parameters within the url that you pass to the data source. Have you tried this approach? If yes, can you show an example of what your url looks like? Perhaps its a format issue that causing trouble.

          Passing parameters with the POST body would also be appropriate, but I'd see that being done with an ajax call. Can you show me how you are wanting to do the similar with the remote data source?