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

Custom GridView (resize and visibility)

5 Answers 103 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jaspy
Top achievements
Rank 1
Jaspy asked on 14 Apr 2016, 01:48 AM

Hello,

I want to make a custom GridView  to fit a specific requirement. So I  changed the ViewDefinition to ColumnGroups View and I got the format I want. It is shown like picture "question.JPG".

 

But the header looks strange ...

1.How can I do to resize the height of header and  resize the height of filter row? 

2.If I want to hide the second row of header and the third row of header , how to do that?

 

Thanks and regards,

Jaspy

2016/04/14

5 Answers, 1 is accepted

Sort by
0
Jaspy
Top achievements
Rank 1
answered on 14 Apr 2016, 02:49 AM
Additional version information:version 2013 Q1
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 14 Apr 2016, 10:19 AM
Hello ,

Thank you for writing.

You can determine whether a specific root GridViewColumnGroup will show its header by the ShowHeader property. The GridViewColumnGroupRow.MinHeight property allows you to adjust the minimal height of the row. Thus, the height for each data row will be adjusted as you specify the MinHeight property for the group row that participates in the ColumnGroupsViewDefinition.

The provided suggestion is applicable to the latest version. Feel free to upgrade in order to benefit from the introduced view definition functionality.

I hope this information helps. Should you have further questions I would be glad to help.

 Regards,
Dess
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Jaspy
Top achievements
Rank 1
answered on 15 Apr 2016, 08:03 AM

Hi,Dess

 

Thanks for your kindly answer.

I still wonder how can I do if I want to hide the second row and the third row?

 

Regards,

Jaspy

2016/04/15

0
Jaspy
Top achievements
Rank 1
answered on 15 Apr 2016, 10:07 AM

Hi,Dess

I have tried your suggestion. But I can't find any property like GridViewColumnGroupRow.MinHeight......

It is the first row to be hide when set the ShowHeader to fase...It can not deal with my situation.

 

Regards,
Jaspy
2016/04/15

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 15 Apr 2016, 12:06 PM
Hello ,

Thank you for writing back. 

The GridViewColumnGroupRow.MinHeight property was introduced in 2014.2.617 version. As it was noted in my previous post the suggested approach is applicable for the latest version. Feel free to upgrade in order to benefit from the introduced improvements in the ColumnGroupsViewDefinition functionality.

As to question about hiding sub-groups/rows, not the root one, you can refer to the following forum post which demonstrates a sample approach: http://www.telerik.com/forums/hide-column-header-only

I hope this information helps. If you have any additional questions, please let me know.

Regards,
Dess
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GridView
Asked by
Jaspy
Top achievements
Rank 1
Answers by
Jaspy
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or