custom filtering in radgrid

2 posts, 0 answers
  1. Ramya
    Ramya avatar
    1 posts
    Member since:
    Apr 2012

    Posted 11 Apr 2012 Link to this post

    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

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 12 Apr 2012 Link to this post

    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.
Back to Top