With a hierarchical grid, how is a title on a child grid hidden?

1 Answer 47 Views
GridView
Dave
Top achievements
Rank 2
Iron
Iron
Veteran
Dave asked on 27 Jun 2023, 06:09 PM

I created a simple hierarchical grid.  The parent grid renders fine.  The child grid contains a title of "table" which I did not assign nor want.

For the main, parent grid, changing and hiding the title is straightforward utilizing TitleText andGridViewElement.TitleLabelElement.Visibility.  For a child grid, not nearly as much.  I caught the events for RowFormatting, ViewRowFormatting, and ViewCellFormatting, to no avail. What method am I missing?  

Attached is an image of a parent & child grid with "table" as the child grid's title, a name which I did not assign, nor want.  Also attached is a sample project which has been playing around with me.

Thanks,

_D

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 30 Jun 2023, 11:37 AM

Hi David,

Thank you for the provided project.

The page tab appears when you have more than one template. Additional GridViewTemplate is added in the designer.cs file. If we remove this line in the designer.cs file of the form:

radGridView1.MasterTemplate.Templates.AddRange(new Telerik.WinControls.UI.GridViewTemplate[] { gridViewTemplate1 });

the page tab does not appear anymore.

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Dave
Top achievements
Rank 2
Iron
Iron
Veteran
commented on 01 Jul 2023, 03:36 AM

Ah, okay.   So this is essentially what's described in the Tabbed View demo.  And "table" is not a title, but a caption.

gridViewTemplate1.Caption = "DavesNotHereMan";

Thanks for the direction!

_D

Tags
GridView
Asked by
Dave
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or