5 Answers, 1 is accepted
0
Hello Jah,
As PropertyDeifinitions are not visual elements and they are not meant to contain any information about the view, such a change would interfere with RadPropertyGrid's base logic. However, you may try binding the respective PropertyGridField's Visibility property or, as alternative approach, to remove and add PropertyDefinitions at runtime. Would you please share with us what exactly are you trying to achieve so that we could give you some guidelines adapted to your scenario?
Kind regards,
Ivan Ivanov
the Telerik team
As PropertyDeifinitions are not visual elements and they are not meant to contain any information about the view, such a change would interfere with RadPropertyGrid's base logic. However, you may try binding the respective PropertyGridField's Visibility property or, as alternative approach, to remove and add PropertyDefinitions at runtime. Would you please share with us what exactly are you trying to achieve so that we could give you some guidelines adapted to your scenario?
Kind regards,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
AvgurD
Top achievements
Rank 1
answered on 16 Nov 2011, 06:44 PM
Hello, Ivan!
In model i have one entity wich contains 2 similar objects types. One object type have value for property A, and null for property B, other - opposite. And I want for first type make invisible property row B, for second - A. It will be right in the sense for the user.
In model i have one entity wich contains 2 similar objects types. One object type have value for property A, and null for property B, other - opposite. And I want for first type make invisible property row B, for second - A. It will be right in the sense for the user.
0
Hi Jah,
You may try reading properties' values on RadPropertyGrid's AutoGeneratingPropertyDefinition, using PropertyInfo.GetValue(Object, Object[]) and cancel their generation process. Would you please confirm whether such a solution is applicable in your scenario?
Best wishes,
Ivan Ivanov
the Telerik team
You may try reading properties' values on RadPropertyGrid's AutoGeneratingPropertyDefinition, using PropertyInfo.GetValue(Object, Object[]) and cancel their generation process. Would you please confirm whether such a solution is applicable in your scenario?
Best wishes,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
kilhoffer
Top achievements
Rank 1
answered on 11 Mar 2013, 03:40 PM
What about cases where property definitions are not auto-generated? The AutoGeneratingPropertyDefinition event does not fire in this case.
0
Hello,
Ivan Ivanov
the Telerik team
PropertyDefinition already has a Visibility property. You can bind it to a property of your ViewModel in XAML.
All the best,Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.