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

GroupRow.MinHeight not work

5 Answers 70 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rudá Cunha
Top achievements
Rank 2
Rudá Cunha asked on 20 Jun 2011, 03:01 PM
My grid is set 
AutoSizeRows = true; 

I just want my rows are a minimum: 

private void GridView_CreateRow (Object sender,
Telerik.WinControls.UI.GridViewCreateRowEventArgs e)
        {
            e.RowInfo.MinHeight = TableElement.RowHeight;
        }


This works perfectly but does not work for the group. 
So I put: 

private void GridView_CreateRow (Object sender,
Telerik.WinControls.UI.GridViewCreateRowEventArgs e)
        {
            e.RowInfo.MinHeight = TableElement.RowHeight;
  
            if (e.RowInfo.Group = null)
                e.RowInfo.Group.GroupRow.MinHeight =
TableElement.RowHeight;
        }


That is the property MinHeight Group does not work as it should (equal to 
the RowInfo.MinHeight). 

How can I solve this?

5 Answers, 1 is accepted

Sort by
0
Accepted
Alexander
Telerik team
answered on 23 Jun 2011, 09:41 AM
Hello Rudá,

Thank you for reporting this issue in the RadGridView control. I confirm that the MinHeight property of group rows is not considered when the control is in AutoSizeRows mode. I have added the issue to our PITS. We will address it in a future release. Your Telerik points have been updated.

You can define the height of group rows using the GroupHeaderHeight property of GridTableElement when RadGridView is not in AutoSizeRows mode.

Best regards,
Alexander
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
0
y2kdis
Top achievements
Rank 1
answered on 13 Feb 2015, 07:11 PM
Has this been resolved in the current build?
0
Stefan
Telerik team
answered on 16 Feb 2015, 09:00 AM
Hello,

Yes, this item is resolved back in Q2 2011 SP1. Here is the link to the item at hand in our feedback portal: http://feedback.telerik.com/Project/154/Feedback/Details/111566.

I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.

Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
y2kdis
Top achievements
Rank 1
answered on 17 Feb 2015, 11:55 PM
Hi Stefan,

We have the 2013 Q3 version and we're still seeing this unwanted behavior. Any clue?

Thanks!
0
Stefan
Telerik team
answered on 18 Feb 2015, 08:48 AM
Hi,

Can you please provide code snippets which we can use to replicate the undesired behavior? Or, of it would be more convenient for you, you can open support ticket and send us a sample project.

I am looking forward to your reply.

Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
GridView
Asked by
Rudá Cunha
Top achievements
Rank 2
Answers by
Alexander
Telerik team
y2kdis
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or