We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid Foreign Key Column - Circular Reference

Thread ID:

Created:

Updated:

Platform:

Replies:

149163 Nov 16,2019 03:32 PM UTC Nov 18,2019 12:48 PM UTC ASP.NET Web Forms 1
loading
Tags: Grid
Peter
Asked On November 16, 2019 03:32 PM UTC

Dear,

ASP.NET Web Forms in VB.NET.

I get a Circular Reference Error on 

ASP._global_asax.

 when adding a Foreign Key Column.

.VB

dsGoods.SelectParameters("CustomerID").DefaultValue = oUser.CustomerID
Dim index = dgLoads.Columns.FindIndex(Function(col) col.Field = "GoodType")
dgLoads.Columns.ElementAt(index).DataSource = dsGoods

.ASPX
<ej:Grid ID="dgLoads">
     <ej:Column Field="GoodType" HeaderText="Type" ForeignKeyValue = "GoodDescription" ForeignKeyField = "GoodID" />
 </ej:Grid>
<asp:SqlDataSource ID="dsGoods" runat="server" ConnectionString='<%$ ConnectionStrings:PSWEB %>'
        SelectCommand="SELECT [GoodID], [GoodDescription] FROM [Goods] WHERE ([CustomerID] = @CustomerID)">
        <SelectParameters>
            <asp:Parameter Name="CustomerID" Type="Int32" />
        </SelectParameters>
</asp:SqlDataSource>

What's wrong?

Farveen Sulthana Thameeztheen Basha [Syncfusion]
Replied On November 18, 2019 12:48 PM UTC

Hi Peter, 

Thanks for contacting Syncfusion Support. 

We have checked your query and we have already discussed about this requirement “Circular reference error while using Entity Framework/Linq 2 SQL” in our Syncfusion Knowledge Base. Refer to the below KB link:- 
 
Please get back to us if you need any further assistance. 

Regards, 
Fareen sulthana T 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon