Browsable attribute

9 posts, 1 answers
  1. Valentino
    Valentino avatar
    28 posts
    Member since:
    Aug 2017

    Posted 22 Aug Link to this post

    It looks like the Browsable attribute, which I use on a data model class property to hide it from the properties grid, also stops the property from being used by the Diagram control.

    e.g. if my 'x co-ord' property is as below, then all my objects in the diagram have their X position at 0.

    [Browsable(false)]
    public int ScrnW
    {
        get { return _scrnW; }
        set { _scrnW = value; OnPropertyChanged("ScrnW"); }
    }

     

    Is there a way I can either hide properties from the properties grid in another way, or make the Diagram able to use these properties regardless of being Browsable? I should think the latter, as I am explicitly telling the Diagram control to use specific properties, but that request is ignored.

    Thanks

  2. Dess
    Admin
    Dess avatar
    2101 posts

    Posted 23 Aug Link to this post

    Hello Valentino, 

    Thank you for writing.  

    Following the provided information, I have prepared a sample project for your reference. It seems that the X and Y properties are considered in RadDiagram although the Browsable attribute is set to false. Please refer to the attached sample project.

    I hope this information helps. Should you have further questions I would be glad to help.

     Regards,
    Dess
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Valentino
    Valentino avatar
    28 posts
    Member since:
    Aug 2017

    Posted 23 Aug Link to this post

    Somehow this doesn't work for me. I tried your project in VS2017 and got the below results.

     

  4. Valentino
    Valentino avatar
    28 posts
    Member since:
    Aug 2017

    Posted 23 Aug in reply to Valentino Link to this post

    I forgot to mention, I'm using an older Telerik version and VS2013. But I still tried your project in VS2017 and got the above results.
  5. Valentino
    Valentino avatar
    28 posts
    Member since:
    Aug 2017

    Posted 23 Aug in reply to Valentino Link to this post

    I forgot to mention, I'm using an older Telerik version, and VS2013, for my main project, unfortunately. But I still tried your project in VS2017 and got the above results.
  6. Valentino
    Valentino avatar
    28 posts
    Member since:
    Aug 2017

    Posted 23 Aug in reply to Valentino Link to this post

    I forgot to mention, I'm using an older Telerik version, and VS2013, for my main project, unfortunately. But I still tried your project in VS2017 and got the above results.
  7. Valentino
    Valentino avatar
    28 posts
    Member since:
    Aug 2017

    Posted 23 Aug Link to this post

    (Sorry for the repeats, something went wrong with my browser).
  8. Answer
    Dess
    Admin
    Dess avatar
    2101 posts

    Posted 24 Aug Link to this post

    Hello Valentino, 

    Thank you for writing back. 

    I have tested with several previous version from 2016 and indeed the X and Y properties were not considered when the Browsable attribute is set to false. However, this is not reproducible in the latest version. Hence, I would recommend you to upgrade in order to benefit from all the introduced improvements and new features as well. 

    I hope this information helps. If you have any additional questions, please let me know. 

    Regards,
    Dess
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  9. Valentino
    Valentino avatar
    28 posts
    Member since:
    Aug 2017

    Posted 24 Aug in reply to Dess Link to this post

    Thanks for the feedback. Unfortunately due to reasons out of my control, we cannot upgrade the project at this time.
Back to Top