Description is not cleared when propertygrid is pointed to a different object

6 posts, 2 answers
  1. HDC
    HDC avatar
    214 posts
    Member since:
    Dec 2010

    Posted 07 Jan 2012 Link to this post

    I'm using component version: 2011.3.1220.1050

    In my application i have multiple objects on a canvas.

    When the user clicks on an object, the property definitions are dynamically loaded. The user can then click on a property and change it's value. When the user clicks on the property, a description of the property is given on the bottom of the property grid. This is all standard behavior.

    However, when the user clicks on another object, new property definitions are loaded, but the description is not cleared!

    Lets say the user clicks a textbox on the canvas and then clicks on the 'Text' property, the description on the bottom would say "Enter the text". When the user then clicks an image on the canvas, new property definitions would be loaded (which would not include the Text Property) but the description on the bottom would still say "Enter the text".

    I can not find any method to clear the description zone, so it seems that this would be a bug in the component.

    Best Regards,

    Peter


  2. Answer
    Maya
    Admin
    Maya avatar
    4062 posts

    Posted 11 Jan 2012 Link to this post

    Hello Peter,

    Indeed, you are quite correct and I managed to reproduce the issue. We are working on resolving it and the fix will be available in one of our next internal builds. I will let you know once it is available for download.
    Thank you for the cooperation. I have updated your Telerik points.


    Kind regards,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. HDC
    HDC avatar
    214 posts
    Member since:
    Dec 2010

    Posted 11 Jan 2012 Link to this post

    Hi Maya

    Thanks for imforming me, looking forward to the fix.

    Best Regards,

    Peter
  5. Marcin Grabowski
    Marcin Grabowski avatar
    20 posts
    Member since:
    Nov 2009

    Posted 11 Feb 2012 Link to this post

    You can use little trick for correct this issue.

    On code behind i have:

    private void MainViewModel_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
    {
        if (e.PropertyName == "PropertyObject")
        {
            this.rpgProperties.AutoGeneratePropertyDefinitions = false;
            this.rpgProperties.PropertyDefinitions.Clear();
            this.rpgProperties.AutoGeneratePropertyDefinitions = true;
        }
    }

    "PropertyObject" is a property that PropertyGrid source is binding.
  6. Answer
    Maya
    Admin
    Maya avatar
    4062 posts

    Posted 13 Feb 2012 Link to this post

    Hello,

    Actually, the issue has been resolved and it will be a part of our upcoming release Q1 2012.
    Nevertheless, thank you, Marcin, for sharing the approach you found with the community. 


    Greetings,
    Maya
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  7. HDC
    HDC avatar
    214 posts
    Member since:
    Dec 2010

    Posted 21 Mar 2012 Link to this post

    Correct, this is fixed in the latest version

    Thanks Maya
Back to Top
DevCraft banner