Completed
Last Updated: 15 Feb 2019 16:50 by ADMIN
Vishal
Created on: 12 Feb 2019 07:57
Category: UI for WinForms
Type: Bug Report
1
RadPivotGrid - no way to set a decimal step less than 1 for a DoubleGroup in the pivot field list control
See the attached screenshot
Attached Files:
2 comments
Dimitar
Posted on: 15 Feb 2019 16:50
Hello,

A fix will be available in Telerik UI for WinForms version R1 2019 SP1.

Regards,
Dimitar
ADMIN
Hristo
Posted on: 12 Feb 2019 07:59
Workaround: custom visual item

public RadForm1()
{
    InitializeComponent();

    this.radPivotGrid1.GroupElementFormatting += this.RadPivotGrid1_GroupElementFormatting;
    this.radPivotFieldList1.RowLabelsControl.CreatingVisualListItem += this.RowLabelsControl_CreatingVisualListItem;
}
 
public class MyPivotFieldListVisualItem : PivotFieldListVisualItem
{
    public MyPivotFieldListVisualItem(FieldListViewModel viewModel)
        : base(viewModel)
    {
    }

    protected override void CreateChildElements()
    {
        base.CreateChildElements();

        ZoomMenuItem zoomMenuItem = typeof(PivotFieldListVisualItem).GetField("doubleStepMenuItem", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).GetValue(this) as ZoomMenuItem;
        if (zoomMenuItem != null)
        {
            zoomMenuItem.Editor.MinValue = 0.1m;
            zoomMenuItem.Editor.MaxValue = decimal.MaxValue;
            zoomMenuItem.Editor.Step = .1m;
        }
    }
}