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

Hierarchical collections

3 Answers 94 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
AndrewRichards
Top achievements
Rank 1
AndrewRichards asked on 03 Jul 2012, 12:23 PM
Hello,

Is it possible to show collection items on the same grid instead of a separate custom editor ? I mean like this:

Name
Players
    [0] Player 1
             Player1 property1
             Player1 property 2
             ...
    [1] Player 2
             Player2 property1
             Player2 property 2
             ...
TeamColor
SomeOtherProperty

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 03 Jul 2012, 12:59 PM
Hello,

 With the recently released Q2 version of RadControls, RadPropertyGrid can edit collections. Please check our online documentation for an additional information.

Greetings,
Didie
the Telerik team

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

0
AndrewRichards
Top achievements
Rank 1
answered on 04 Jul 2012, 06:26 AM
Yes, I know that, thanks, but what I meant by my question was that is it possible NOT to use the built-in collections editor so that collections are displayed in the propertygrid hierarchically not as a popup ?

For example, what propertygrid does right now:

Name          John Smith
Birthday       4/26/1934
Children      (opens a popup)

..But what I look for is that the business object can be edited as a treeview:

Name               John Smith
Birthday           4/26/1934
[-] Children      (Children subcollection is expanded)
    [1] Person
       Name           Jack Smith
       Birthday       1/1/1964
       [+] Children  (this subcollection can be expanded)
    [1] Person
      Name             Janet Smith
      Birthday         1/1/1965
      [+]  Children   (this subcollection can be expanded)

Is that possible ?

Thanks!


0
Dimitrina
Telerik team
answered on 06 Jul 2012, 06:59 AM
Hello,

 Yes, it is possible. I have attached a sample project showing how you could define the PropertyDefinitions manually.

Regards,
Didie
the Telerik team

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

Tags
PropertyGrid
Asked by
AndrewRichards
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
AndrewRichards
Top achievements
Rank 1
Share this question
or