This is a migrated thread and some comments may be shown as answers.

CurrentFilterValue in google-like filtering not working

0 Answers 36 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Carlos
Top achievements
Rank 1
Carlos asked on 18 Jun 2012, 06:10 PM

Hi I am testing the google-like example but encounter  a problem when asking for the CurrentFilterValue, here is the code,

protected void RadGrid_ItemCommand(object source, GridCommandEventArgs e)
        {
            if ((e.CommandName == "Filter"))
            {
                string something = "";
                foreach (GridColumn column in e.Item.OwnerTableView.Columns)
                {
                    something = column.CurrentFilterValue;
                    column.CurrentFilterValue = string.Empty;
                    column.CurrentFilterFunction = GridKnownFunction.NoFilter;
                }
            }
        }


The issue is that the string something is always “” for all the values. I test the same code with a default GridColumn and it works fine (change the value of “something”) but not with the current google-like filtering example.

The code in the CustomeFilter is the same as the demo code(MyCustomFilteringColumnCS.cs).

Thanks

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Carlos
Top achievements
Rank 1
Share this question
or