Newbie Question: Passing Parameter via Ajax

Newbie Question: Passing Parameter via Ajax

johnwjohnw Posts: 13Questions: 5Answers: 0

Allan,

I'm using client side so currently I call an ajax and then filter on the columns. Is there any way for me to pass the parameters when making an ajax call so I don't retrieve all of the records. Thanks.

Answers

  • allanallan Posts: 63,871Questions: 1Answers: 10,525 Site admin

    Sure - use the ajax.data option to send data to the server. Then you can filter the data on the server-side however you like.

    Allan

  • johnwjohnw Posts: 13Questions: 5Answers: 0

    Allan,

    So I guess I need to use ServerSide option. I guess you cannot do this using clientside. I'm still learning, but this is a great software. Thanks Allan!

  • allanallan Posts: 63,871Questions: 1Answers: 10,525 Site admin

    You can do it client-side. You can use the ajax.data parameter that I mentioned to send data to the server.

    Just because you are Ajax loading data doesn't implicitly imply server-side processing. Most of the Editor demos Ajax load data, but are using client-side processing. The "processing" in this case is referring to where the sorting, filtering, etc happens.

    Allan

This discussion has been closed.