1

I have a bootgrid table with large number of rows. Is it possible to apply filter on the table?

e.g. each row has an attribute, say type. I want to display type="A" rows only.

many thx

steve

Java Guy
  • 53
  • 1
  • 4

1 Answers1

0

Try this solution:

  1. Enable Ajax ajax : true.

  2. Add this custom search value to your ajax requests like this:

      $('#grid').bootgrid({ 
      ajax : true,
      url : '/this/is/the/ajax/url',
      otherStuff : ... ,
      requestHandler : function (request) {
          request.searchVal = $('#type').val("A");
          return request;
      }
      });
    
TiyebM
  • 2,684
  • 3
  • 40
  • 66