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

[Solved] LinqDataSource binding at design time

1 Answer 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Richard Branham
Top achievements
Rank 1
Richard Branham asked on 02 Mar 2010, 06:54 PM

I have a LinqDataSource which is configured to pull records from a table.  When I bind a RadGrid to the LDS at design time, the columns from the table are visible in VS design view.  Due to the security constraints of our environment, I need to bind to the output of stored procedures instead of binding directly to tables.  I am able to do this at runtime by setting e.Result to the output of a method in the datacontext.  Of course, this means that the columns returned by the stored proc are not shown in the RadGrid in VS design view.

Is it possible to specify a stored proc as the data source for a LinqDataSource and have the columns displayed in the RadGrid at design time?

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 05 Mar 2010, 10:40 AM
Hi Richard,

Stored procedures are queried in the data source's Selecting event as described in the following MSDN article.

Try this scenario with a standard ASP.NET GridView control and see if the designer renders the grid as required. If not, then probably the designer itself cannot manage to query your LinqdataSource in this way.

Regards,
Veli
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
Richard Branham
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or