Lightweight Text Rendering
The RadGridView control provides the functionality to use a lightweight rendering mode for the cells' text, which boosts the performance. To enable this functionality, set the EnableLightweightTextRendering property of RadGridView to true. This alternative rendering will skip the creation of TextBlock elements that are used to display the cells' text. Instead, it will use a faster drawing API, which draws the cells in a separate panel.
Enabling the lightweight rendering mode
<telerik:RadGridView EnableLightweightTextRendering="True" GroupRenderMode="Flat"/>
Redraw Actions
The panel that is used for the lightweight rendering mode, will be forced to redraw when the following GridViewCell element's properties are changed:
FontSizeFontFamilyFontStyleFontWeightFontStretchHorizontalContentAlignmentVerticalContentAlignment
Known Limitations
The lightweight text rendering is more performant, but it comes at the cost of some feature limitations. The following list shows some of the known features that are unsupported with the mode.
- Merged cells are not supported with this rendering mode. If the merged cells functionality is enabled, a
NotSupportedExceptionwill be raised. - Frozen columns are not supported with this rendering mode. Set the
CanUserFreezeColumnsproperty of RadGridView to False, in order to use the text rendering mode. Otherwise, aNotSupportedExceptionwill be raised. - The
Nestedoption of theGroupRenderModeproperty does not support this rendering mode. Set the group render mode toFlatto use the text rendering mode. Otherwise, aNotSupportedExceptionwill be raised. - The
ShowTooltipOnTrimmedTextproperty of the columns does not support this rendering mode, as it relies on theTextBlockelement of each the cell. - The
CellTemplateorCellTemplateSelectorproperties of the columns will disable this rendering mode for their cells. - The
ContentTemplateorContentTemplateSelectorproperties of theGridViewCellelement will disable this rendering mode. - The
RightToLeftoption theFlowDirectionproperty will disable this rendering mode.