[FEATURE] DisplayAttribute, Complex types

4 posts, 0 answers
  1. Peter
    Peter avatar
    28 posts
    Member since:
    Oct 2006

    Posted 24 Jun 2011 Link to this post

    Hi,

    with today's release of PropertyGrid I started switching some parts of my projects to use it. During this I asked myself if the standard DataAnnotations (Display: Description, GroupName) are supported. As I realized they are not at the moment. I know it is still a beta but are you going to add support for those attributes?

    In addition to that I tried to make complex types editable but was not able to do that. Some time ago I posted an issue (http://www.telerik.com/community/forums/silverlight/data-form/dataform-as-property-inspector.aspx) asking for a PropertyGrid behaviour, where you can edit not only the object and its simple types (string, date, numbers, ...) but also types that contain such properties themself. So for example if a person has a address property, which contains street, postal code and city, I can edit it while also editing the persons phone number. This is very similar to GridView's HierarchicalDataTemplate. Any plans to implement such hierarchical structure?

    Thanks in advance,
    Peter

    PS: You did a great job with Q2. Looking forward to Metro UI too!
  2. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 27 Jun 2011 Link to this post

    Hello Peter,

    Thank you for the nice words !
    Since the purpose of our beta releases is getting in touch with clients and synchronizing their demand with our plans, I am grateful for your feedback . I have talked to the team and we agree that at least a partial data annotations support should be added for the Property grid .
    We are starting to work on it so that the basic feature could occur for the very next official release.

    Regarding your second request - support for nested objects:

    The current version "kind of" supports such scenario. The property definitions may be customized and custom editors may be placed instead of the default ones - including a more complex control for editing  nested properties.

    I will be glad to hear your expectations on how such functionality may be implemented - e.g. nested property grids, popup or a custom control ?  Any feedback  is highly appreciated.

    One more time thanks for the feature request . i am updating your Telerik points.

    Greetings,
    Pavel Pavlov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Peter
    Peter avatar
    28 posts
    Member since:
    Oct 2006

    Posted 09 Jul 2011 Link to this post

    Hello Pavel,

    thank you for your insight on DataAnnotations. I am really looking forward to this, as it will make your component easier to use and more powerful!

    For the PropertyGrid I did a little collage ;-). It is attached to this post. But lets add some description to it. The fields First, Last and Phone are just basic edit controls of the edited type's properties. Address is also a property but of a complex type. Instead of showing the namespace (current situation of PropertyGrid) it would be nice if I could expand it and edit its simple properties. This should be an recursive approach (see AppSettings property).

    A more complex scenario is the Projects property. When I was creating the screenshot I thought it would be really cool, if there was a VisualStudio kind of experience when editing lists. Just click the ... and you get a popup where you can manage the list of projects. I can imagine how hard this is to implement so it is just a proposal. The nested properties have a much higher priority for my work.

    I hope you can imagine how this should work. Thank you for listening to my requests.

    Greetings,
    Peter
  5. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 14 Jul 2011 Link to this post

    Hi Peter,

    Thank you for t the detailed description ! We are definitely going to consider your feedback while planning the improvements for our next release. Although at this stage I can not commit to a specific release date , I believe these are plausible to appear in our very next official release. I am updating your Telerik points.

    Greetings,
    Pavel Pavlov
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top