Hi
I have a problem with grid. When I set enablePersistence=true, and allowfiltering=true in the DataGrid, which contains column databinded to foreign DataSet, when user choose some options in column filters, the grid is not loading after refresh of page.
Problem doesn't exist when enablePersistence is set to false, but I need this function.
Here is code:
<ejs-grid enablePersistence="true"
id="Grid1231231"
allowFiltering="true"
locale="pl-PL"
load="onLoad"
>
<e-data-manager url="@Url.Page("./Index", new {handler = "DataSource"})"
batchUrl="@Url.Page("./Index", new {handler = "BatchUpdate"})"
adaptor="UrlAdaptor">
e-data-manager>
<e-grid-filtersettings type="Menu">e-grid-filtersettings>
<e-grid-editsettings allowAdding="true" allowDeleting="true" allowEditing="true" mode="Batch">e-grid-editsettings>
<e-grid-columns>
<e-grid-column field="DispatchListId" type="number" isPrimaryKey="true" isIdentity="true" headerText="ID" textAlign="Center" width="80">e-grid-column>
<e-grid-column field="DispatchPlaceId" headerText="Miejsce załadunku" dataSource="@Model.PlantViewModels" foreignKeyField="PlantId" foreignKeyValue="Name">e-grid-column>
e-grid-columns>
And here is the error, after refreshing page, when column is filtered:
Uncaught TypeError: gObj.getColumnByField(...) is undefined
refreshFilteredColsUid https://localhost:5051/lib/syncfusion/ej2.js?v=tOL7GVjRePmK1ryVO6RrPErgrv2DQYaEVvCs7ly4WoI:87692
refreshFilteredCols https://localhost:5051/lib/syncfusion/ej2.js?v=tOL7GVjRePmK1ryVO6RrPErgrv2DQYaEVvCs7ly4WoI:60779
notify https://localhost:5051/lib/syncfusion/ej2.js?v=tOL7GVjRePmK1ryVO6RrPErgrv2DQYaEVvCs7ly4WoI:8557
notify https://localhost:5051/lib/syncfusion/ej2.js?v=tOL7GVjRePmK1ryVO6RrPErgrv2DQYaEVvCs7ly4WoI:2155
render https://localhost:5051/lib/syncfusion/ej2.js?v=tOL7GVjRePmK1ryVO6RrPErgrv2DQYaEVvCs7ly4WoI:81645
appendTo https://localhost:5051/lib/syncfusion/ej2.js?v=tOL7GVjRePmK1ryVO6RrPErgrv2DQYaEVvCs7ly4WoI:2080
ej2.js:87692:20
refreshFilteredColsUid https://localhost:5051/lib/syncfusion/ej2.js?v=tOL7GVjRePmK1ryVO6RrPErgrv2DQYaEVvCs7ly4WoI:87692
refreshFilteredCols https://localhost:5051/lib/syncfusion/ej2.js?v=tOL7GVjRePmK1ryVO6RrPErgrv2DQYaEVvCs7ly4WoI:60779
notify https://localhost:5051/lib/syncfusion/ej2.js?v=tOL7GVjRePmK1ryVO6RrPErgrv2DQYaEVvCs7ly4WoI:8557
notify https://localhost:5051/lib/syncfusion/ej2.js?v=tOL7GVjRePmK1ryVO6RrPErgrv2DQYaEVvCs7ly4WoI:2155
render https://localhost:5051/lib/syncfusion/ej2.js?v=tOL7GVjRePmK1ryVO6RrPErgrv2DQYaEVvCs7ly4WoI:81645
appendTo https://localhost:5051/lib/syncfusion/ej2.js?v=tOL7GVjRePmK1ryVO6RrPErgrv2DQYaEVvCs7ly4WoI:2080