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

NestedViewTemplate Relations without sqlDatasource

1 Answer 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Quoc
Top achievements
Rank 1
Quoc asked on 25 Oct 2013, 09:02 AM
1 : I don't know how to do like this exp: http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplatedeclarativerelations/defaultcs.aspx
I have a list of item List<item> get by DAL how to bind it to Detail info
(i don't have sqldatasource)

2: I wonder why all exp use sqldatasource is it the new stand of programming ?

3 : Can i bind the list item to sqldatasourece and do like exp

Thanks.



1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 30 Oct 2013, 09:27 AM
Hi,

In order to bind the RadGrid to a List<> object an approach similar to the one illustrated here could be used. You could bind it directly to the List<>.

The RadGrid and its GridTableViews could be bound to an instance to any of the following types:
  • DataSet, DataTable or DataView
  • Array of DataRow
  • Any object collection that implements the IListSource, IList, IEnumerable, or ICustomTypeDescriptor interfaces
In a hierarchical grid detail tables have to be bound separately from their parent tables, using separate data source. When binding detail tables, you also have to manage the relationship of the records in the detail data source to the parent table. This could be done declaratively or using DetailTableDataBind event.

I hope this information would be helpful to you.

Regards,
Viktor Tachev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Quoc
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or