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

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

5 Answers 72 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
HDC
Top achievements
Rank 1
HDC asked on 07 Jan 2012, 08:40 AM
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


5 Answers, 1 is accepted

Sort by
0
Accepted
Maya
Telerik team
answered on 11 Jan 2012, 02:35 PM
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 >>

0
HDC
Top achievements
Rank 1
answered on 11 Jan 2012, 04:30 PM
Hi Maya

Thanks for imforming me, looking forward to the fix.

Best Regards,

Peter
0
Marcin Grabowski
Top achievements
Rank 1
answered on 11 Feb 2012, 08:02 PM
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.
0
Accepted
Maya
Telerik team
answered on 13 Feb 2012, 08:05 AM
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 >>
0
HDC
Top achievements
Rank 1
answered on 21 Mar 2012, 09:33 PM
Correct, this is fixed in the latest version

Thanks Maya
Tags
PropertyGrid
Asked by
HDC
Top achievements
Rank 1
Answers by
Maya
Telerik team
HDC
Top achievements
Rank 1
Marcin Grabowski
Top achievements
Rank 1
Share this question
or