AutoGeneratePropertyDefinitions="false" doesn't work with templates

4 posts, 1 answers
  1. Sebastian
    Sebastian avatar
    1 posts
    Member since:
    Aug 2012

    Posted 01 Aug 2011 Link to this post

    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
  2. Answer
    Maya
    Admin
    Maya avatar
    4062 posts

    Posted 02 Aug 2011 Link to this post

    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 >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. marcjohne
    marcjohne avatar
    2 posts
    Member since:
    Jun 2011

    Posted 10 Oct 2011 Link to this post

    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
  5. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1128 posts

    Posted 11 Oct 2011 Link to this post

    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 >>
Back to Top