Filter column does a Refreshing instead of Filtering...

1 reply. Last post: November 13, 2009 2:38 AM by Handy Surya
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hi,

I created a function to apply a filter on a grid based on the value in a TextBox. (AddFilter)

However when the function is called it does a "Refreshing data..."

If I use the Filtering directly in the WebGrid, the status line shows: "Filtering column..."

The final result is the same but the Refreshing is much slower!!

Is there a method which would do a filter instead of a refresh?

For example: grid.Filter() to replace grid.Refresh()

Thanks

 

function AddFilter()

{

var grid = ISGetObject("dgMEL"); var newFilter = new WebGridFilter(); var obj = document.getElementById("TextBox1"); newFilter.ColumnMember = "MEOwner";

newFilter.FilterType = "Contain"

"Contain"

newFilter.FilterText = obj.value;

if (grid.RootTable.GetRow(0) != null)

{

grid.RootTable.FilteredColumns.Add(newFilter);

grid.RootTable.UpdateUI();

grid.Refresh();

}

}

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