LinqDataSource

2 posts, 0 answers
  1. Rahul Khinvasara
    Rahul Khinvasara avatar
    303 posts
    Member since:
    Aug 2007

    Posted 16 May 2008 Link to this post

    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>

     

  2. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 19 May 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top