Make datatables refresh with filter from link/input box

Make datatables refresh with filter from link/input box

XenoxsisXenoxsis Posts: 1Questions: 0Answers: 0
edited April 2013 in General
Hi everyone, and hi datatables,

I'm thrilled that I found this tool, its exactly what I need in order to show a list it products. I show a list with images, names, manufacturer and a category. Now I have everything set up nicely in a C# MVC project, and I use server side processing to asynchronously manage the data.

Now before I discovered data tables, I had the page show a quick overview of categories (seen here: http://www.laktosefri.dk/Products/ - Right side, called "Kategorier")

Is there a way to have these categories make the datatable serverside to update (either through filtering or other) so that when I click a category link outside the actual datatable, it will update the data?

Hope the question is clear enough.

- Xenoxsis

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    If you want to filter the table you can use fnFilter - or if you want to change the data source for the table you can use fnServerParams to send a different parameter, indicating the category, to the server-processing script.

    Allan
This discussion has been closed.