Bind the Grid to Array Data Type

2 posts, 0 answers
  1. erwin
    erwin avatar
    382 posts
    Member since:
    Dec 2006

    Posted 19 Apr 2011 Link to this post


    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.

  2. Julian Benkov
    Julian Benkov avatar
    1135 posts

    Posted 22 Apr 2011 Link to this post

    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.

    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
Back to Top