class name hidden

7 posts, 0 answers
  1. Alex Troto
    Alex Troto avatar
    20 posts
    Member since:
    Jul 2012

    Posted 02 Aug 2012 Link to this post

    Hi,
    Is it possible to hide the name of class in a nested scenario ?
    For an end-user it's just a source of confusion. I've attached a picture with an example.
    Thanks,
    Alex Troto
  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 03 Aug 2012 Link to this post

    Hello,

    In case you are using AutogeneratedPropertyDefinitions, you can subscribe to the AutogeneratingPropertyDefinitions event and set an empty DataTemplate to the EditorTemplate property of the respective PropertyDefinition. And on the other hand, for manually-generated property definitions, you can try RadPropertyGrid's UnboundMode. Please, refer to Example1 from this article.

    Kind regards,
    Ivan Ivanov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Alex Troto
    Alex Troto avatar
    20 posts
    Member since:
    Jul 2012

    Posted 24 Oct 2012 Link to this post

    Hi, 
    Your solution worked like a charm with Telerik 2012.2.725.1050.
    Starting with the last Telerik updates, this doesn't work anymore, I'm getting a null reference unhanded error.
    I'm using AutogeneratedPropertyDefinitions.
    Code for AutogeneratingPropertyDefinitions event :
    private void RadPropertyGrid_AutoGeneratingPropertyDefinition(object sender, Telerik.Windows.Controls.Data.PropertyGrid.AutoGeneratingPropertyDefinitionEventArgs e)
            {
                    if (e.PropertyDefinition.SourceProperty.PropertyType.IsClass
                        && !e.PropertyDefinition.SourceProperty.PropertyType.IsSealed)
                    {
                        e.PropertyDefinition.EditorTemplate = new DataTemplate();
                    }
                }
    All I want it's to hide class name for nested properties.
    Regards,
    Alex
  5. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 24 Oct 2012 Link to this post

    Hi,

    Would you please specify, which is the version that you are using to reproduce this exception, so that we would be able to investigate the problem?

    Kind regards,
    Ivan Ivanov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Alex Troto
    Alex Troto avatar
    20 posts
    Member since:
    Jul 2012

    Posted 24 Oct 2012 Link to this post

    Hi,
    If I'm using Telerik 2012.2.725.1050. it's ok.
    After I've migrated to 2012.3.1017.1050, it's not working anymore.
    Alex
  7. Alex Troto
    Alex Troto avatar
    20 posts
    Member since:
    Jul 2012

    Posted 25 Oct 2012 Link to this post

    (UPDATE)
    I believe I found a clue. If i set EnableEditorCaching="False", the problem goes away.
    I'm not sure what it's the meaning of this property.
    Regards,
    Alex
  8. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 25 Oct 2012 Link to this post

    Hello,

    We have introduced a set of caching optimizations that target to improve scenarios with search, grouping and rebinding to an item of the same type. They are enabled by default, but you can easily disable them by using the mentioned property. Unfortunately we did not manage to reproduce this exception. Would it be possible for you to isolate it in a repro project?

    Kind regards,
    Ivan Ivanov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
DevCraft banner