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

custom filtering in radgrid

1 Answer 76 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ramya
Top achievements
Rank 1
Ramya asked on 11 Apr 2012, 06:43 PM

Hi,
Is it possible to get teh value of filtered column on button click. generally when we input some text and select a filter option then itemcommand is triggered an dwe can get the value from gridcommandeventargs. But, is it possible to get the value of that filtered column on click of a seperate button above the grid?

OR is it possible to have filter options(liek what we have for a grid-basic filtering options) and a custom text filter using filtertemplate inside a gridboundcoulmn

TIA

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 12 Apr 2012, 05:49 AM
Hello Ramya,

Try the following code to access the value in external button click.
C#:
protected void Button1_Click(object sender, EventArgs e)
{
   foreach (GridColumn col in RadGrid1.MasterTableView.Columns)
  {
    RadGrid1.MasterTableView.GetColumn(col.UniqueName).CurrentFilterValue.ToString();
  }
}

Thanks,
Shinu.
Tags
General Discussions
Asked by
Ramya
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or