propertygrid not responding to RefreshPropertiesAttribute

6 posts, 0 answers
  1. Sayyed Hossein
    Sayyed Hossein avatar
    20 posts
    Member since:
    Oct 2012

    Posted 24 Oct 2012 Link to this post


    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
  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 24 Oct 2012 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Sayyed Hossein
    Sayyed Hossein avatar
    20 posts
    Member since:
    Oct 2012

    Posted 28 Oct 2012 Link to this post

    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 :)
  5. Phil
    Phil avatar
    1 posts
    Member since:
    Apr 2013

    Posted 06 Jan 2015 Link to this post

    Is there a work around?  I have properties that can depend on other properties.  So, I need to update the PropertyGrid when a particular property changes.  Is there a way to do this other than have the user force the PropertyGrid to load the object again?

    Thanks,
    Phil
  6. Guy
    Guy avatar
    1 posts
    Member since:
    Jun 2016

    Posted 18 Oct Link to this post

    +1

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

  7. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 21 Oct Link to this post

    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!
Back to Top
UI for WPF is Visual Studio 2017 Ready