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

Bind the Grid to Array Data Type

1 Answer 42 Views
GridView
This is a migrated thread and some comments may be shown as answers.
erwin
Top achievements
Rank 1
Veteran
erwin asked on 19 Apr 2011, 09:15 PM

Hi,

postgres supports arrays as column data. Is there a best practice to generically bind the grid to data tables that contain for example string[] columns?
If yes, is filtering and sorting supported by RadGridView without having to write custom code?
Currently I resorted to using array_to_string(column) in my SQL, but that leads to potentially very long / wide columns.

Regards
Erwin

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 22 Apr 2011, 10:40 AM
Hi Erwin,

RadGridView can not bind directly to a list or array with string[] values. The control discovers and binds to public properties of an object and this is the normal binding behavior. To support this functionality, you must implement ITypedList interface like DataView implementation for example. The sorting, filtering and grouping operations are internally processed in RadGridView and do not depend on an external data source object. They must work in all your cases.

Greetings,
Julian Benkov
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
Tags
GridView
Asked by
erwin
Top achievements
Rank 1
Veteran
Answers by
Julian Benkov
Telerik team
Share this question
or