Use values entered on filter for database filtering

1 reply. Last post: May 3, 2016 3:49 AM by Erwin Sanders
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Dimitris Β.Member

Hello,

While the built-in fitering mechanism of WebGrid is great for most scenarios, we have some cases where we need to apply the filter directly to the database (without even using the operators suggested by the control -contains, not equal to, etc).

Can something like the following scenario be done:

  1. Enter a filter on the filter bar
  2. Apply filter 
  3. On the server side:
  • get all filter values
  • cancel the default filter functionality
  • use the filter values to get appropriate data directly from the database
  • rebind the grid with new data from previous step
  • refresh the grid on the client-side
From the documentation it seems that this cannot be done, or am I missing something?

Regards,
Dimitris

(WebGrid version used: 9.0.7200)

All times are GMT -5. The time now is 1:34 PM.
Previous Next