RadGridView control provides support for zooming its content through the
ScaleFactor properties. These properties are exposed by the
GridViewDataControl class and are fully supported by the
RadTreeListView control as well.
EnableMouseWheelScaling property allows you to control whether the zoom feature should be turned on or off. The default value of this property is
False. When the property's value is
True, the zoom on the RadGridView control can be performed by holding the
CTRL key and by scrolling the
<Grid> <telerik:RadGridView x:Name="radGridView" EnableMouseWheelScaling="True"/> </Grid>
Enabling zooming in code-behind
this.radGridView.EnableMouseWheelScaling = true;
Me.radGridView.EnableMouseWheelScaling = True
Zooming RadGridView control
ScaleFactor property allows you to control the zoom scaling of the
RadGridView element. The values that are going to be taken into account are in the range of
4.0. The default value of this property is
4.0 as a value for the ScaleFactor property will also be considered valid.
ScaleFactorvalue will be respected even if the zooming feature is disabled.
Setting the ScaleFactor property
<Grid> <telerik:RadGridView x:Name="radGridView" ScaleFactor="2.0" /> </Grid>
Setting the ScaleFactor property in code-behind
this.radGridView.ScaleFactor = 2;
Me.radGridView.ScaleFactor = 2
Custom value for ScaleFactor property