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

Filter Icon Overlaps text

1 Answer 78 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rachel
Top achievements
Rank 2
Rachel asked on 14 Nov 2008, 06:48 PM
I have the following problem with the filter row in my RadGridView control:  when a column is set to align the text to the right, and a filter is applied, the text in the filter cell shows up behind the filter icon.  Is there a way to keep the two from overlapping?

Thanks,
Rachel

1 Answer, 1 is accepted

Sort by
0
Accepted
Nick
Telerik team
answered on 17 Nov 2008, 04:47 PM
Hello Rachel,

Thank you for your question.

Please use the ViewCellFormatting event to override the general right alignment for the filtering row. For example:

private void radGridView1_ViewCellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e) 
        { 
            if (e.CellElement.RowInfo is GridViewFilteringRowInfo) { 
                e.CellElement.TextAlignment = ContentAlignment.MiddleCenter; 
            } 
        } 

Do not hesitate to write me back if you have further questions.

Best wishes,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Rachel
Top achievements
Rank 2
Answers by
Nick
Telerik team
Share this question
or