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

increase width of filter text box in grid (Urgent.....)

2 Answers 218 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Test
Top achievements
Rank 1
Test asked on 05 Aug 2008, 11:22 AM
hi

how to maximize width of filter textbox in grid.

Please help me

thanks in advance

2 Answers, 1 is accepted

Sort by
0
Accepted
Veli
Telerik team
answered on 05 Aug 2008, 11:34 AM
Hello Patel,

You need to register for the PreRender event of RadGrid and retrieve the filtering item:

void RadGrid1_PreRender(object sender, EventArgs e) 
    GridFilteringItem item = RadGrid1.MasterTableView.GetItems(GridItemType.FilteringItem)[0] as GridFilteringItem; 
    (item["ColumnUniqueName"].Controls[0] as TextBox).Width = Unit.Pixel(150); 


Greetings,
Veli
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Princy
Top achievements
Rank 2
answered on 05 Aug 2008, 12:12 PM
Hi Patel,

You can also refer the following help article which explains how to set Filter textbox dimensions.
Setting filter textbox dimensions/changing default filter image

Thanks
Princy.
Tags
Grid
Asked by
Test
Top achievements
Rank 1
Answers by
Veli
Telerik team
Princy
Top achievements
Rank 2
Share this question
or