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

set individual style on filter boxes

1 Answer 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 1
Sean asked on 15 Dec 2008, 07:24 PM
Hello,

I would like to know how i can set the style for each individual filter cell.
Some of my columns need to be horizontal aligned left or right.
That's why my question.

Thank you.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 16 Dec 2008, 09:28 AM
Hello,

You can try out the following code to align the filtering item to the left or right:
cs:
 protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        if (e.Item is GridFilteringItem) 
        { 
            GridFilteringItem filter = (GridFilteringItem)e.Item; 
            filter["columnUniqueName"].HorizontalAlign = HorizontalAlign.Right; 
        } 
    } 
 

Thanks
Princy.


Tags
Grid
Asked by
Sean
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or