When Editing GridForeignColumn with SfAutoComplete, reverts to Value instead of text

I was given this sample and it used to work

<GridForeignColumn Field=@nameof(Order.EmployeeID) ForeignKeyField="Id" HeaderText="Employee Name"
ForeignKeyValue="FirstName" ForeignDataSource="@EmployeesWidth="150">

    <EditTemplate>

        <SfAutoComplete @ref="autoObjID="EmployeeID" TItem="EmployeeDataTValue="int?" @bind-Value="@((context as Order).EmployeeID)DataSource="@Employees">

            <AutoCompleteFieldSettings Value="Id" Text="FirstName"></AutoCompleteFieldSettings>

            <AutoCompleteEvents TValue="int?TItem="EmployeeDataFiltering="OnFilter"></AutoCompleteEvents>

        </SfAutoComplete>

    </EditTemplate>

</GridForeignColumn>

Now when the user starts to Edit, it shows the ForeignKeyField instead of the ForeignKeyValue. I believe it used to work, I'm not sure what happened.


1 Reply

RS Renjith Singh Rajendran Syncfusion Team December 22, 2021 05:02 AM UTC

Hi Andrew, 
 
Greetings from Syncfusion support. 
 
We are not clear about the exact scenario you are facing this problem. We checked this by creating a sample in our latest nuget version 19.4.0.38 in which we could not reproduce the reported problem. The AutoComplete renders fine with FirstName(ForeignKeyValue) field value. Please refer the screenshot below, 
 
We are also attaching the sample which we have tried for your reference, please download the sample from the link below, 
 
 
 
Please get back to us if you need further assistance. 
 
Regards, 
Renjith R 


Loader.
Up arrow icon