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

PropertyGrid Binding to a Collection?

5 Answers 335 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 2
Scott asked on 07 May 2012, 04:23 PM
Can the PropertyGrid Bind to a collection?

I have a collection of System Settings I would like to bind to a property Grid?  Is this possible with your property grid control?

All I see in examples are binding to a single item.

Thanks,
Scott

5 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 08 May 2012, 09:07 AM
Hello Scott,

The standard approach to define what to view and edit in RadPropertyGrid is to define a PropertyDefinition for each field you need to edit.

In your case you will need to iterate your original collection and add a PropertyDefinition with the relevant binding for each position in this collection.

Let me know if you have troubles while implementing this approach.


Greetings,
Pavel Pavlov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Saranya
Top achievements
Rank 1
answered on 29 Jun 2012, 10:15 AM
Hi Pavel

                 Will you please post an example for your above explanation about PropertyGrid Bind to a collection(arraylist--is my need )?


Thanks
Saranya..
0
Ivan Ivanov
Telerik team
answered on 29 Jun 2012, 10:33 AM
Hi Saranya,

The basic idea behind RadPropertyGrid is to provide an interface for visualizing and editing of an item's properties. There are some scenarios, in which a common set of properties should be extracted from a collection of items. Here is an article that illustrates a specific feature of RadPropertyGrid that handles such cases. RadPropertyGrid also supports editing of collection-type properties utilizing the CollectionEditorPicker control. Please refer to the mentioned articles and let us know whether your case is similar to any of the described scenarios. If not, it might be much more convenient for you to consider some of our ItemsControl-based controls.

Greetings,
Ivan Ivanov
the Telerik team

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

0
Saranya
Top achievements
Rank 1
answered on 02 Jul 2012, 01:00 PM
Hi Ivan
          Thanks for the reply.CollectionEditorPicker control is fine for my requirement.But am not able to add that control to my silverlight page.am getting error like assembly is missing.this particular control i can find in RadControls for Silverlight Q2 2012 release right ?  i don't find any working demo for this control inside property grid.i need some working demo and namespace details.


Thanks
Saranya

0
Ivan Ivanov
Telerik team
answered on 02 Jul 2012, 03:00 PM
Hello,

I have prepared a sample project for you that illustrates how to use CollectionEditorPicker both in RadPropertyGrid and stand-alone. Please, refer to the attachment.

Kind 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
Scott
Top achievements
Rank 2
Answers by
Pavel Pavlov
Telerik team
Saranya
Top achievements
Rank 1
Ivan Ivanov
Telerik team
Share this question
or