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

get the filter textbox value

1 Answer 219 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Allen
Top achievements
Rank 1
Allen asked on 06 Mar 2013, 11:58 AM
Hi
How can I get the filter textbox value in server side.
thanks in advance
Allen

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 06 Mar 2013, 12:10 PM
Hi,

Try the following code.
C#:
void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
 {
          if (e.CommandName == RadGrid.FilterCommandName)
        {
            GridFilteringItem fitem = (GridFilteringItem)e.Item;
            TextBox filterBox = (TextBox)fitem["ColumnUniqueName"].Controls[0];
            string strTxt = filterBox.Text;
        }
}

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