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

Browsable attribute

8 Answers 88 Views
Diagram, DiagramRibbonBar, DiagramToolBox
This is a migrated thread and some comments may be shown as answers.
Valentino
Top achievements
Rank 1
Valentino asked on 22 Aug 2017, 11:48 PM

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

8 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 23 Aug 2017, 11:14 AM
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.
0
Valentino
Top achievements
Rank 1
answered on 23 Aug 2017, 10:48 PM

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

 

0
Valentino
Top achievements
Rank 1
answered on 23 Aug 2017, 10:50 PM
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.
0
Valentino
Top achievements
Rank 1
answered on 23 Aug 2017, 10:50 PM
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.
0
Valentino
Top achievements
Rank 1
answered on 23 Aug 2017, 10:51 PM
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.
0
Valentino
Top achievements
Rank 1
answered on 23 Aug 2017, 10:52 PM
(Sorry for the repeats, something went wrong with my browser).
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 24 Aug 2017, 09:28 AM
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.
0
Valentino
Top achievements
Rank 1
answered on 24 Aug 2017, 11:03 PM
Thanks for the feedback. Unfortunately due to reasons out of my control, we cannot upgrade the project at this time.
Tags
Diagram, DiagramRibbonBar, DiagramToolBox
Asked by
Valentino
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Valentino
Top achievements
Rank 1
Share this question
or