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

unique name of the filtering column

1 Answer 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Allen
Top achievements
Rank 1
Allen asked on 04 Jun 2013, 01:04 PM
Hi
How can I get the unique name of the filtering column?

Allen

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 04 Jun 2013, 01:06 PM
Hi,

Please try the following code snippet.

C#:
public void RadGrid1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
{
    if (e.CommandName == RadGrid.Filter)
    {
       Pair filterPair = (Pair)e.CommandArgument;
       string columnname = filterPair.Second.ToString();
    }
}

Thanks,
Princy.
Tags
Grid
Asked by
Allen
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or