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

Grid and Edit Form with 2 different datasources

1 Answer 22 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ramjet
Top achievements
Rank 1
Ramjet asked on 30 Apr 2010, 10:26 PM
I have almost exactly the same problem as this thread but I do NOT have the key piece of knowledge to connect an entity data source.
http://www.telerik.com/community/forums/aspnet-ajax/grid/grid-and-edit-form-with-2-different-datasources.aspx

After reading above:

I am missing the boat on this one. I have my data access via Entity Framework and bind an entity data object to the datagrid no problem. I want my second datasource to bind to the NestedView BUT the only option I have is DataSourceID which is expecting a string value that represents, for example, a SQLDataSource object.....but I don't need one I already have my data so how do I get the entity data bound to the nested view...yes I could circumvent the entity and make it work but that would defeat using the entity???

What am I missing?

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 06 May 2010, 07:23 AM
Hello John,

In this case, you can use a standard hierarchy, and pass the data to the control via the NeedDataSource/DetailTableDataBind event handlers, as shown here:

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/detailtabledatabind/defaultcs.aspx

Let me know how this meets your requirements.

Regards,
Yavor
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
Grid
Asked by
Ramjet
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or