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

propertygrid not responding to RefreshPropertiesAttribute

4 Answers 221 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Sayyed Hossein
Top achievements
Rank 1
Sayyed Hossein asked on 24 Oct 2012, 11:39 AM

hi dear telerik team

assume i have a property like the below:

[RefreshProperties(RefreshProperties.All)]
public MyType MyProperty
{
 get
 {
  return _myProperty;
 }
 set
 {
  _myProperty=value;
   RaisePropertyChanged("MyProperty ");
 }
}
 
public bool OtherProperty2
{
 get
 {
  return _otherProperty2;
 }
 set
 {
  _otherProperty2=value;
  if(value)
  {
    MyProperty = new MyType();
  }
  else
  {
    MyProperty = null;
  }

   RaisePropertyChanged("OtherProperty2");
 }
}

well MyProperty defaults to null so what i see at the begining in the property grid is:

MyProperty
OtherProperty2      false;
OtherProperty3
OtherProperty4

then when i set OtherProperty2 to true the property grid must look like this:

+ MyProperty
OtherProperty2      true;
OtherProperty3
OtherProperty4

and vice versa. but this doesnt happen! and for this to happen i am forced to do something to manualy refresh the property grid like switching between the A-Z view and GroupView

note that MyProperty has browsable properties like Name and LastName in it.

thank you very much in advance for your help

4 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 24 Oct 2012, 12:09 PM
Hi,

Currently, this attribute is not supported. We will consider implementing it in our future versions. Thank you for the provided feedback. Meanwhile, I have noticed that you are not added as a licensed developer in our system. May, I asked you whether you are working as a subcontractor for the license owner or you have obtained this product in some alternative way. Please, let me notify you that as a licensed developer you will be able to benefit from much wider variety of support options and resources.

Kind regards,
Ivan Ivanov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Sayyed Hossein
Top achievements
Rank 1
answered on 28 Oct 2012, 12:03 PM
hi
i will be very thankful if you could inform me on this when happened

btw i am currently fully testing the product for my company if it satisfies all our needs then i inform my managers so they would buy it for us . but currently just a tester. a hard tester though :P. i have to use all needed controls in real life use before everybody is sure "THIS" is the right thing :)

and thank your for the great helps in this forum :)
0
Guy
Top achievements
Rank 1
answered on 18 Oct 2016, 08:41 PM

+1

We would be interested in the support of this attribute as well

0
Ivan Ivanov
Telerik team
answered on 21 Oct 2016, 03:05 PM
Hi,

RadPropertyGrid does not provide an out-of-the-box support for this attribute yet. However, reloading the underlying data should be easie now, using the follwing method.

Regards,
Ivan Ivanov
Telerik by Progress
Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
Tags
PropertyGrid
Asked by
Sayyed Hossein
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Sayyed Hossein
Top achievements
Rank 1
Guy
Top achievements
Rank 1
Share this question
or