|
S.No |
Queries |
Solutions | |
|
1 |
How can I control the style of the drop indicators (Arrow and Line) ? I want to control the position of the arrows - increase distance from left border of grid. |
Your requirement can be achieved by customizing the UpIndicatorContentControl and DownIndicatorContentControl TargetType inSfDataGrid. Please refer the below code snippet,
Please refer the screen shot for your reference, | |
|
2 |
I want to control the line width and line color. |
Your requirement can be achieved by override the HeaderRowControl and VirtualizingCellsControl Template in SfDataGrid. Please refer the below code snippet,
Please refer the screen shot for your reference, |
|
Queries |
Solutions | |
|
How can I control the style of the drop indicators (Arrow and Line)? I want to control the position of the arrows - increase distance from left border of SfTreeGrid.
|
Currently, we are analyzing your requirement of “control the style of the drop indicators Arrow in SfTreeGrid” We will validate and update you the details on or before April 07, 2021. | |
|
I want to control the line width and line color in SfTreeGrid |
Your requirement can be achieved by override the TreeGridHeaderRowControl and TreeGridRowControl Template in SfTreeGrid. Please refer the below code snippet,
Please refer the screen shot for your reference,
Sample Link: https://www.syncfusion.com/downloads/support/forum/158682/ze/LineIndicatorStyle2014781079
|
|
<Style TargetType="{x:Type syncfusion:UpIndicatorContentControl}">
<Setter Property="Margin" Value="250,0,0,0" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type syncfusion:UpIndicatorContentControl}">
<Border SnapsToDevicePixels="True">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="OpenStates">
<VisualState x:Name="Open">
<Storyboard RepeatBehavior="Forever">
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="PART_UpIndicator" Storyboard.TargetProperty="(UIElement.Opacity)">
<EasingDoubleKeyFrame KeyTime="0" Value="0.5" />
<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1" />
<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.5" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Path x:Name="PART_UpIndicator"
Data="M9.112874,8.0378246E-05 C9.7075377,0.0055089793 10.299755,0.28596777 10.745893,0.84058738 L12.581395,3.1212618 C13.475121,4.2270861 14.93559,6.0423775 15.82582,7.1494956 L17.664116,9.4308643 C18.557789,10.539382 17.810413,11.430925 16.005547,11.415606 L12.535283,11.38336 L12.535283,16.734177 C12.535283,17.66646 11.779409,18.42079 10.848061,18.42079 L7.1915703,18.42079 C6.2608137,18.42079 5.5035992,17.66646 5.5035992,16.734177 L5.5035992,11.323217 L2.0157599,11.290271 C0.2109952,11.275599 -0.51887822,10.368738 0.3929224,9.2768822 L2.2698665,7.0262566 C3.1823502,5.9359593 4.6743135,4.148622 5.5861521,3.0582769 L7.4651861,0.80975246 C7.9211054,0.26425231 8.5182133,-0.005348762 9.112874,8.0378246E-05 z"
RenderTransformOrigin="0.5,0.5"
SnapsToDevicePixels="True"
Stretch="Fill"
Stroke="Red"
Fill="Red"
StrokeThickness="1"
UseLayoutRounding="False" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="{x:Type syncfusion:DownIndicatorContentControl}">
<Setter Property="Margin" Value="250,0,0,0" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type syncfusion:DownIndicatorContentControl}">
<Border SnapsToDevicePixels="True">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="OpenStates">
<VisualState x:Name="Open">
<Storyboard RepeatBehavior="Forever">
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="PART_DownIndicator" Storyboard.TargetProperty="(UIElement.Opacity)">
<EasingDoubleKeyFrame KeyTime="0" Value="0.5" />
<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1" />
<EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.5" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Path x:Name="PART_DownIndicator"
Data="M9.112874,8.0378246E-05 C9.7075377,0.0055089793 10.299755,0.28596777 10.745893,0.84058738 L12.581395,3.1212618 C13.475121,4.2270861 14.93559,6.0423775 15.82582,7.1494956 L17.664116,9.4308643 C18.557789,10.539382 17.810413,11.430925 16.005547,11.415606 L12.535283,11.38336 L12.535283,16.734177 C12.535283,17.66646 11.779409,18.42079 10.848061,18.42079 L7.1915703,18.42079 C6.2608137,18.42079 5.5035992,17.66646 5.5035992,16.734177 L5.5035992,11.323217 L2.0157599,11.290271 C0.2109952,11.275599 -0.51887822,10.368738 0.3929224,9.2768822 L2.2698665,7.0262566 C3.1823502,5.9359593 4.6743135,4.148622 5.5861521,3.0582769 L7.4651861,0.80975246 C7.9211054,0.26425231 8.5182133,-0.005348762 9.112874,8.0378246E-05 z"
RenderTransformOrigin="0.5,0.5"
SnapsToDevicePixels="True"
Stretch="Fill"
Stroke="Red"
Fill="Red"
StrokeThickness="1"
UseLayoutRounding="False">
<Path.RenderTransform>
<TransformGroup>
<RotateTransform Angle="180" />
</TransformGroup>
</Path.RenderTransform>
</Path>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style> |