Custom GridView (resize and visibility)

6 posts, 0 answers
  1. Jaspy
    Jaspy avatar
    6 posts
    Member since:
    Mar 2016

    Posted 13 Apr Link to this post

    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

  2. Jaspy
    Jaspy avatar
    6 posts
    Member since:
    Mar 2016

    Posted 13 Apr in reply to Jaspy Link to this post

    Additional version information:version 2013 Q1
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Dess
    Admin
    Dess avatar
    1601 posts

    Posted 14 Apr Link to this post

    Hello Jaspy,

    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.
  5. Dess
    Admin
    Dess avatar
    1601 posts

    Posted 15 Apr Link to this post

    Hello Jaspy,

    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.
  6. Jaspy
    Jaspy avatar
    6 posts
    Member since:
    Mar 2016

    Posted 15 Apr in reply to Dess Link to this post

    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

  7. Jaspy
    Jaspy avatar
    6 posts
    Member since:
    Mar 2016

    Posted 15 Apr in reply to Dess Link to this post

    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

Back to Top
UI for WinForms is Visual Studio 2017 Ready