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

How I can set height GridFilterRowElement?

3 Answers 71 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dmitry Shapiro
Top achievements
Rank 1
Dmitry Shapiro asked on 15 Dec 2008, 10:46 AM
Greetings!
I have a small problem. When I set property RowsHeight equal 75 at GridFilterRowElement the height also is set 75.
How I can set height GridFilterRowElement?

I'm use latest version.

3 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 16 Dec 2008, 04:43 PM
Hi Dmitry Shapiro,

We do not support changing the filtering row's height, however we will consider adding such functionality. Could you give us more details on why you need a higher filtering row - is a design or functional requirement? We plan to work on the UI and the themes for all of our controls and your feedback will help us improve our tools.

Thanks in advance.


Best wishes,
Nick
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Dmitry Shapiro
Top achievements
Rank 1
answered on 18 Dec 2008, 08:44 AM
Hi Nick!
Thank you for your reply.
In everyone row tables the picture is displayed, for convenience of its viewing it is necessary to set height of all rows tables.
Therefore I have made so:
When I set property RowsHeight equal 75, but GridFilterRowElement the height also is set 75.

I have found the problem decision:
        private void radGridView1_DataBindingComplete(object sender, GridViewBindingCompleteEventArgs e) 
        { 
            for (int i = 0; i < radGridView1.Rows.Count; i++) 
            { 
                radGridView1.Rows[i].Height = DBConnector.rowHeight; 
            } 
        } 

0
Accepted
Nick
Telerik team
answered on 18 Dec 2008, 04:43 PM
Hi Dmitry Shapiro,

Please use the following work-around:
private void radGridView1_ViewRowFormatting(object sender, RowFormattingEventArgs e) 
        { 
            if (e.RowElement is GridDataRowElement) 
            { 
                e.RowElement.RowInfo.Height = 100; 
            } 
        } 

It works when adding new rows too.

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


Greetings,
Nick
the Telerik team

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