$(function () {
// the datasource "window.gridData" is referred from jsondata.min.js
var data = window.gridData;
$("#Grid").ejGrid({
dataSource: data,
allowPaging: true,
allowSorting: true,
allowGrouping: true,
allowMultiSorting: true,
allowFiltering: true,
enableHeaderHover: false,
allowResizing: true,
filterSettings: { filterType: "excel" },
editSettings: { allowEditing: true, allowAdding: true, allowDeleting: true, editMode: "normal" },
toolbarSettings: { showToolbar: true, toolbarItems: [ej.Grid.ToolBarItems.Add, ej.Grid.ToolBarItems.Edit, ej.Grid.ToolBarItems.Delete, ej.Grid.ToolBarItems.Update,ej.Grid.ToolBarItems.Cancel] },
columns: [
{ field: "OrderID", width: 80, isPrimaryKey: true,textAlign: ej.TextAlign.Right,validationRules: {required:true, number: true }} ,
{ field: "EmployeeID", foreignKeyField: "EmployeeID", foreignKeyValue: "FirstName", dataSource: window.employeeView, width: 75, headerText: "First Name" },
{ field: "Freight", textAlign: ej.TextAlign.Right, width: 75, editType: ej.Grid.EditingType.Numeric,editParams: { decimalPlaces: 2 }, validationRules: { range: [0, 1000] }, format: "{0:C}" },
{ field: "ShipName", headerText: 'Ship Name', width: 150 },
{ field: "ShipCountry", headerText: 'Ship Country', editType: ej.Grid.EditingType.Dropdown, width: 90 }
]
});
});
We have already fixed the mentioned issue “Excel filter in foreign key column displayed parent table values” in version 13.2.0.29. So we suggest you to upgrade to the latest version and is available for download under the following link.
We have created a sample and checked the mentioned issue in latest version, the Excel filter shows the FirstName value in foreignkey column correctly. Still if you face the same issue please revert us the sample and share the screen shot to reproduce issue from our end.
http://jsplayground.syncfusion.com/3oalhufo
Regards,
Balaji Marimuthu
We have already fixed the reported issue “Excel filtering is not working in foreign key columns with different field and foreignKeyField name” and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.
https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents
Regards,
Balaji Marimuthu