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
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.
Dimitar
Telerik by Progress
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
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
Thanks for your help Dimitar.
I'll keep an eye on the Feedback Portal.
Thanks,
Tom