Completed
Last Updated: 20 Nov 2023 14:30 by ADMIN
Release R3 2023 SP1 (2023.3.1114)
Bert
Created on: 31 Oct 2023 12:58
Category: VirtualGrid
Type: Bug Report
0
RadVirtualGrid: Current and expander icons overlap each other in hierarchy mode

When the control is populated with hierarchy data, the current arrow icon and the expander icon overlap each other. This is observed when you click on a row.

As a workaround, we can increase the size of the indent column to leave enough space for both icons.

this.radVirtualGrid1.TableElement.IndentColumnWidth = 40;

Then we can move the current row arrow icon to the left (or right, depending on your requirement) in the CellFormatting event handler of the control.

private void radVirtualGrid1_CellFormatting(object sender, VirtualGridCellElementEventArgs e)
{
    if (e.CellElement is VirtualGridIndentCellElement)
    {
        var indentCell = e.CellElement as VirtualGridIndentCellElement;
        indentCell.ImageLayout = ImageLayout.None;
        indentCell.ImageAlignment = ContentAlignment.MiddleLeft;
    }
}
Here is the result of executing the above code:

 

 

 

3 comments
ADMIN
Dinko | Tech Support Engineer
Posted on: 20 Nov 2023 14:30

Hi Bert,

Thank you for sharing this behavior and I am happy to hear that you have a solution for it. This behavior will taken into consideration when our development team starts working on it.

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Bert
Posted on: 20 Nov 2023 11:28

The solution provided by SP1 of R3 2023 (2023.3.1114) indeed solves the problem of overlapping of both icons. But now the current row arrow is not displayed at all if the current row has the icon for expanding / collapsing visible.

I found out that the Image property of the VirtualGridIndentCellElement has no value in this situation. To ensure both icons are visible, like in the image in the comment showing a workaround for the initial problem, I have to set the Image property of the relevant VirtualGridIndentCellElement.

ADMIN
Dinko | Tech Support Engineer
Posted on: 31 Oct 2023 13:04

Hi Bert,

The provided information is highly appreciated.

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.