Problem with category and scroll bar

2 posts, 0 answers
  1. Amand
    Amand avatar
    9 posts
    Member since:
    Aug 2012

    Posted 23 Jul 2013 Link to this post

    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.
  2. George
    Admin
    George avatar
    500 posts

    Posted 25 Jul 2013 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top