radGrid and the shrinking/expanding NestedViewTemplate

1 Answer 10 Views
Grid
SSirica
Top achievements
Rank 2
Iron
Iron
Veteran
SSirica asked on 17 Jun 2022, 06:47 PM
I have a grid that is very wide, so it has a horizontal scroll bar.  The grid has a NestedViewTemplate to display these wide rows in one screen frame.  Because I don't know the size of my users screens, I try my best to use % for the height and width.  This has been a source of angst, but that's an issue for another time. I'm using a table to display the data in my NestedViewTemplate.  My question is, why is the width % based on the width of the grid and not the size of the screen?  In order to get the view I'm looking for I have to set my detail table width to 25%.  It wouldn't be an issue if we had the option to display the NestedViewTemplate in a popup.  

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 22 Jun 2022, 07:57 AM

Hi,

The way the percentage size works is to set the size as a portion of the parent element.

If you want to set the width based on the viewport, you would need to use "vw" units instead of "%":

As for the Grid viewing the NestedViewTemplate in a popup, you can add a button or use the click events of the grid to open a RadWindow where you could view the details:

Regards,
Peter Milchev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
SSirica
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Peter Milchev
Telerik team
Share this question
or