How do we "apply all filters" programatically using client side scripting

4 replies. Last post: December 9, 2009 8:36 PM by Julia Wijaya
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Madhavan GMember

Hi,

I'm using the below code to apply filters programatically using client side scripting.

  var grid = ISGetObject("WebGrid1");

    var newFilter = new WebGridFilter();

    newFilter.ColumnMember = "ContactTitle";

    newFilter.FilterType = "Like"; 

    newFilter.FilterText = "Check";           

    grid.RootTable.FilteredColumns.Add(newFilter); 

    grid.RootTable.UpdateUI(); 

    grid.Refresh();

 

 

Filtering is happening but when  grid.Refresh()  mathod is called the grid is refreshing once again and the filterd data is lost.  How can I filter the grid without refreshing the grid. (Just filter the column)

 

 

All times are GMT -5. The time now is 3:59 AM.
Previous Next