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

Remove Spacing in Hierarchical Data

4 Answers 97 Views
VirtualGrid
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 26 Apr 2017, 05:52 PM

I am having trouble removing the blank space between hierarchies / childviews when using the RadVirtualGrid to display hierarchical data.

(see Image01 attached)

If I set 

MasterViewInfo.Padding = new Padding(0);

and

e.ChildViewInfo.Padding = new Padding(0);

the situation improves (see Image02 attached), but I still can't seem to remove all of the spacing between childviews.

 

Any ideas?

 

Thanks,

Tom

4 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 27 Apr 2017, 09:48 AM
Hi Tom,

Please note that you can specify negative padding as well. For this case you can use:
e.ChildViewInfo.Padding =new Padding(0,0,0,-12);

Please let me know if there is something else I can help you with. 
 
Regards,
Dimitar
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Thomas
Top achievements
Rank 1
answered on 27 Apr 2017, 04:45 PM

Hi Dimitar,

Thanks for your fast reply.

Applying the negative padding almost works, but not quite.

The space appears to be removed (see attached Image03), however, this introduces another display issue.

When I hover the mouse over an item higher in the hierarchy, the blank space reappears and overwrites data in the grid (see attached Image04).

I imagine that this blank space that we are trying to remove with negative padding is created either by some primitive element which is hidden but not collapsed or by a positive padding value applied to an element.

 

Is there any way we can discover which element is causing the space to appear so that it can be removed more thoroughly?

 

Thanks for your help!

Tom

0
Dimitar
Telerik team
answered on 28 Apr 2017, 10:30 AM
Hello Thomas,

I have further investigated this case. It appears that this is caused because of an issue in our implementation and we are including the height of the scrollbar as well. I have logged this issue in our Feedback Portal. I have added a vote for it on your behalf as well. You can track its progress, subscribe for status changes and add your comment to it here. I have also updated your Telerik Points.

The issue is located in a private method and this is why I cannot suggest a workaround for it.

Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Thomas
Top achievements
Rank 1
answered on 02 May 2017, 06:04 PM

Thanks for your help Dimitar.

I'll keep an eye on the Feedback Portal.

 

Thanks,

Tom

Tags
VirtualGrid
Asked by
Thomas
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Thomas
Top achievements
Rank 1
Share this question
or