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

Multiple RadGrids overlap on expansion?

4 Answers 111 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 01 Jul 2010, 01:25 PM
Greetings

I have an issue with RadGrids.  We have multiple RadGrids on the same webpage.  Each RadGrid has a master/detail table setup: the user can expand at will.

The issue is that, if the user expands the top RadGrid, it appears to overlap the RadGrid below it.

I have successfully found a way to programmatically alter the height of the top RadGrid so that is "pushes" the other RadGrid further down the web page. 

But I'm still seeing what appears to be grid lines from the top RadGrid (these only appear after expanding it into detail mode) in the bottom RadGrid.

Any ideas on how to prevent this?

Thanks in advance!

Peter

4 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 01 Jul 2010, 02:21 PM
Hello Peter,

Please make sure that the RadGrid controls are not placed in containers with some pixel height, which is too small.

If this is not the case, then maybe you are experiencing a browser rendering bug - is the problem observed only in IE? Have you altered the RadGrid styles in any way? Can you provide a demo?

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
Peter
Top achievements
Rank 1
answered on 01 Jul 2010, 02:56 PM
Thanks for the quick reply.

Removing the height attribute from the 2nd RadGrid did help: I no longer see inappropriate grid lines in either RadGrid.

I have a new question, though: I am prommatically setting the height of the 1st RadGrid (in order to "push" the 2nd RadGrid down when the user selects expansion to view detail rows), which works fine on initial detail expand.

If, however, the user "collapses" back to the master table view, the RadGrid attribute for Item.Count is still reporting the number of items there were in the expanded condition.  Since I use this value to determine the height, after collapsing, I have all this extra white space in the RadGrid that I don't want to appear.

How do I get an accurate count of the items actually being displayed in the RadGrid after the user "collapses" the view back to the master table view level?

Thanks!

Peter
0
Dimo
Telerik team
answered on 01 Jul 2010, 03:15 PM
Hi Peter,

I don't really understand why you need to set height to RadGrid client-side at all. If you are not using scrolling, the control will stretch and shrink automatically upon hierarchy expand/collapse.

In your case you should iterate through all table rows and check their current visibility, which is cumbersome and slow operation.


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
Peter
Top achievements
Rank 1
answered on 01 Jul 2010, 03:24 PM


You are corrrect - you have to remove any reference to sizing on the RadGrids & then everything operates correctly.

Thanks for the help!

Peter
Tags
General Discussions
Asked by
Peter
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Peter
Top achievements
Rank 1
Share this question
or