In C# I would like to create an OpenAccessLinqDataSource dynamically in the code behind during a page load. I then will add it to the Radgrid's datasource.
I have the the Domains set up in a Entities Diagram.
I have not seen any examples of doing this...Should the following work?
Telerik.OpenAccess.Web.OpenAccessLinqDataSource ds = new Telerik.OpenAccess.Web.OpenAccessLinqDataSource();
ds.ContextTypeName = "Appname.EntitiesModelxxx";
ds.EntityTypeName = "TestName";
ds.ID = "dsTestDatasource";
ds.EnableDelete = true;
ds.EnableUpdate = true;
ds.EnableInsert = true;
RadGrid1.DataSourceID = "";
RadGrid1.DataSource = ds;