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

[Solved] Getting the text of the Filter

1 Answer 128 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sam
Top achievements
Rank 1
sam asked on 28 May 2008, 03:26 PM
Dear Telerik,

I need to know how can i get text that was eneterd in the filters textboxes in the rad grid...


Thanks in advance...


Regards
Basel...

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 29 May 2008, 06:04 AM
Hi Sam,

Try accessing the FilterTextBox text in the ItemDataBound event as shown below.

CS:
 protected void RadGrid2_ItemDataBound(object sender, Telerik.WebControls.GridItemEventArgs e) 
    { 
        if (e.Item is GridFilteringItem) 
        { 
            GridFilteringItem filter = (GridFilteringItem)e.Item; 
            TextBox txtbx = (TextBox)filter["Name"].Controls[0]; 
            string strxtx = txtbx.Text.ToString(); 
        } 
         
    } 


Hope this helps..
Shinu.
Tags
Grid
Asked by
sam
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or