This is a migrated thread and some comments may be shown as answers.

Problem with category and scroll bar

1 Answer 147 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Amand
Top achievements
Rank 1
Amand asked on 23 Jul 2013, 09:08 AM
Hello support !

When changing the property sort to categorized or not, the vertical scroll bar is always displayed, even when not needed.

To reproduced:
 - create a form with a property grid.
 - set ToolbarVisible to true
 - add some properties, but not enough to cause the scroll bar to appear.
 - start and click on the sort button: the sort is changed, but the scroll bar became visible even if it is not needed.

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 26 Jul 2013, 04:47 AM
Hello Amand,

Thank you for writing.

I tested your scenario and was able to identify the issue you described. I have logged it in our Public Issue Tracking System, you can find it on this address. The issue was addressed and the fix for it will be available in our next release. For the time being as a workaround you can create your own class which derives from RadPropertyGrid. Below is an example code:
public class MyPropGrid : RadPropertyGrid
{
    protected override PropertyGridElement CreatePropertyGridElement()
    {
        return new MyPropGridElement();
    }
 
    public override string ThemeClassName
    {
        get { return typeof(RadPropertyGrid).FullName; }
        set { }
    }
}
 
public class MyPropGridElement : PropertyGridElement
{
    protected override PropertyGridSplitElement CreateSplitElement()
    {
        return new MyPropGridSplitElement();
    }
 
    protected override Type ThemeEffectiveType
    {
        get { return typeof(PropertyGridElement); }
    }
}
 
public class MyPropGridSplitElement : PropertyGridSplitElement
{
    protected override PropertyGridTableElement CreateTableElement()
    {
        return new MyPropGridTableElemnet();
    }
 
    protected override Type ThemeEffectiveType
    {
        get { return typeof(PropertyGridSplitElement); }
    }
}
 
public class MyPropGridTableElemnet : PropertyGridTableElement
{
    protected override void UpdateScrollers(UpdateActions updateAction)
    {
        this.Scroller.UpdateScrollRange();
    }
 
    protected override Type ThemeEffectiveType
    {
        get { return typeof(PropertyGridTableElement); }
    }
}

Additionally your Telerik Points have been updated for the report.

Hope this helps, if you have any other questions or comments, please let me know.
 

Regards,
George
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
PropertyGrid
Asked by
Amand
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or