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

LinqDataSource

1 Answer 52 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rahul Khinvasara
Top achievements
Rank 1
Rahul Khinvasara asked on 16 May 2008, 07:33 AM

Hi,
I am using Rad Controls for asp.net.
I am using telerik grid and LinqDataSource.

I have created DataContext.dbml in which I have drag grop a view vw_Tests. I want to bind the data from view to the gridview.

It buits/ compiles the application successful but when I execute it, it hangs my PC.

I have to end task my server process.

Please assist.

Below is the code

<telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" DataSourceID="LinqDataSource1" >

<MasterTableView AutoGenerateColumns="False" DataSourceID="LinqDataSource1">

<RowIndicatorColumn Visible="False">

<HeaderStyle Width="20px"></HeaderStyle>

</RowIndicatorColumn>

<ExpandCollapseColumn Visible="False" Resizable="False">

<HeaderStyle Width="20px"></HeaderStyle>

</ExpandCollapseColumn>

<Columns>

<telerik:GridBoundColumn DataField="ExaminationId" DataType="System.Int32"

HeaderText="ExaminationId" SortExpression="ExaminationId"

UniqueName="ExaminationId">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="ExaminationAccessionCode"

HeaderText="ExaminationAccessionCode" SortExpression="ExaminationAccessionCode"

UniqueName="ExaminationAccessionCode">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="ExaminationDate" DataType="System.DateTime"

HeaderText="ExaminationDate" SortExpression="ExaminationDate"

UniqueName="ExaminationDate">

</telerik:GridBoundColumn>

</Columns>

<EditFormSettings>

<PopUpSettings ScrollBars="None"></PopUpSettings>

</EditFormSettings>

</MasterTableView>

</telerik:RadGrid>

<asp:LinqDataSource ID="LinqDataSource1" runat="server"

ContextTypeName="DataContext" TableName="vw_Tests">

</asp:LinqDataSource>

 

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 19 May 2008, 01:05 PM

Hello Rahul,

I think that the project from the following code library post will help you bind your RadGrid for ASP.NET AJAX instance to LinqDataSource control and perform automatic data editing operations:

http://www.telerik.com/community/code-library/submission/b311D-bcmcht.aspx

Also verify that you are using the latest hotfix Q1 2008 SP1 of the control (part of Telerik.Web.UI.dll ver.2008.1.515).

Best regards,

Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Rahul Khinvasara
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or