Not visible cell rendering (with DataTemplate)


Hi,

I'm using a GridControl in virtual mode.
So only the visible cells are rendered and shown.

With a normal cell (for example, a static cell) that is NOT visible, I can call the method
GetRenderStyleInfo and use it to render the cell. For example:

GridRenderStyleInfo renderStyleInfo = myGrid.GetRenderStyleInfo(visibleLineInfoRow.LineIndex,
visibleLineInfoColumn.LineIndex);
RenderCellArgs renderCellArgs = new RenderCellArgs(myGrid, visibleLineInfoRow,
visibleLineInfoColumn, rect, renderStyleInfo);
IGridCellRenderer gridCellRenderer = myGrid.CellRenderers["Static"];
gridCellRenderer.Render(aDrawingContext, renderCellArgs);

But this method does not work if my cell is using a DataTemplate.

Is there a way to force the rendering of a cell (using a DataTemplate) that is NOT visible ?

In fact, I need to get the visual of the cell.

Thanks,
P.OM
Reportive



2 Replies

PO Puthirak OM November 3, 2011 03:52 PM UTC

Forgot to tell you the version of Syncfusion I'm using.
It's the version 8.2.0.18




RA Rajasekar Syncfusion Team January 9, 2012 07:07 AM UTC

Hi Puthirak,

Sorry for the inconvenience, At present we don’t have virtualization support for DataTemplated cell, so here you can’t force the DataTemplated cells to render.

Please let us know if you have any queries.

Thanks,
Rajasekar



Loader.
Up arrow icon