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

NestedViewTemplate Height

5 Answers 49 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Batoha
Top achievements
Rank 1
Batoha asked on 05 Aug 2010, 11:47 AM
Hello, guys.
How do I control the height of nested view?
I would like it to change its height according to its content.

With respect, Sergey.

5 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 10 Aug 2010, 02:45 PM
Hello Sergey,

The NestedViewTemplate does not have any preset height, so by default its height depends on its content. The same is observed in the following demo:

http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx

Greetings,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Batoha
Top achievements
Rank 1
answered on 10 Aug 2010, 03:26 PM
Hello, Dimo.
In your example all nested items have the same height for all rows.
Do you have any example where nested items have different heights for different rows?

With respect, Sergey.
0
Dimo
Telerik team
answered on 10 Aug 2010, 04:08 PM
Hello Sergey,

I am afraid I do not understand what the problem is - as I said, the NestedViewTemplate should expand as much as its content. We don't have a demo with different heights of the NestedViewTemplate, but if you do, it should work as expected. Can you demonstrate a different behavior?

All the best,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Batoha
Top achievements
Rank 1
answered on 10 Aug 2010, 06:50 PM
Hello again.
The problem is that at the moment of posting my question I was trying to use nestedview template to show some data for the grid row. And I faced the issue when template height was the same (in my case 326px or something like that)  for each row and I could not make it less than that. It could only be minimized if I haven't put there any control. But I'm pretty sure I didn't set height of any control that I put inside template. After struggling with this thing I decided to change my approach and refused from using nested view at all.
So, unfortunately, at the moment I don't even have an example to show to you.

With respect, Sergey.
0
Dimo
Telerik team
answered on 11 Aug 2010, 07:54 AM
Hello Sergey,

Generally, if an HTML element is higher than expected, the first thing to do is inspect its contents with Firebug in order to determine what causes the unexpected layout. Sometimes forgotten / inherited CSS styles may interfere with a page layout.

All the best,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Batoha
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Batoha
Top achievements
Rank 1
Share this question
or