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

AutoGeneratePropertyDefinitions="false" doesn't work with templates

3 Answers 130 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Sebastian
Top achievements
Rank 1
Sebastian asked on 01 Aug 2011, 04:35 PM
Hello,

i got a problem when using the RadPropertyGrid with a template. When i set the property AutoGeneratePropertyDefinitions to false and use the RadPropertyGrid inside a DataTemplate, the property seems to be ignored and i see all properties of the class object.

<Window ... >
  
    <Window.Resources>
  
        <local:TemplateSelector x:Key="templateSelector">
  
            <local:TemplateSelector.TemplateA>
  
                <DataTemplate>
  
                    <rad:RadPropertyGrid AutoGeneratePropertyDefinitions="False" Item="{Binding }">
                         
                        <rad:RadPropertyGrid.PropertyDefinitions>
  
                            <rad:PropertyDefinition DisplayName="The only property displayed" />
                              
                        </rad:RadPropertyGrid.PropertyDefinitions>
 
                    </rad:RadPropertyGrid>
  
                </DataTemplate>
  
            </local:TemplateSelector.TemplateA>
  
        </local:TemplateSelector>
  
    </Window.Resources>
 
 <Grid>
 
    <ContentPresenter  ContentTemplateSelector="{StaticResource templateSelector}"  Content="{Binding }" />
                  
 </Grid>
  
</Window>

With kind regards,

Sebastian

3 Answers, 1 is accepted

Sort by
0
Accepted
Maya
Telerik team
answered on 02 Aug 2011, 05:33 PM
Hello Sebastian,

Indeed, you are quite correct. We managed to find the cause of the problem and it has already been resolved. The fix will be probably available in our next Internal Build.
Thank you for reporting this. I have updated your Telerik points.
 

Greetings,
Maya
the Telerik team

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

0
marcjohne
Top achievements
Rank 2
answered on 10 Oct 2011, 10:17 AM
Good Morning Maya,

I'm a colleague of Sebastian and workling with him on a projekt where we using your RadPropertyGrid. I also encountert the problem with the AutoGeneratePropertyDefinitions bug and was very happy about the fix. But since the 2011.2.920.40 update this bug is back which is quite annoying. The even worse thing is thad some recursion in the sub note generation (I coul'd not realy point it down) fills up my memory with about 1GiB per Grid.

Thx,
Marc
0
Ivan Ivanov
Telerik team
answered on 11 Oct 2011, 04:30 PM
Hello Marc,

Thank you for attracting our attention to this issues. I have updated your Telerik points status accordingly. It appears that on certain conditions RadPropertyGrid enters an infinite recursion. The fix will be available with our next internal build. It will be released in the beginning of the next week. Please, excuse us for the caused inconvenience.

Regards,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
PropertyGrid
Asked by
Sebastian
Top achievements
Rank 1
Answers by
Maya
Telerik team
marcjohne
Top achievements
Rank 2
Ivan Ivanov
Telerik team
Share this question
or