- Home
- Forum
- ASP.NET Core - EJ 2
- Saving on 2nd grid affects 1st gird
Saving on 2nd grid affects 1st gird
Hello,
I currently have 2 grids on a single page. Each has its own ID, and data managers. Both have inline editing enabled.
Whenever I try to save a change on Grid2, the data manager of Grid1 executes. Aside from the grid IDs and data manager URLs, both grids are identical.
Grid 1
<ejs-grid id="grid1"
gridLines="Horizontal">
<e-data-manager insertUrl="<CreateUrl>"
url="<ReadUrl>"
updateUrl="<UpdateUrl>"
removeUrl="<DeleteUrl>"
adaptor="WebApiAdaptor" ></e-data-manager>
<e-grid-editsettings allowAdding="false"
allowDeleting="true"
allowEditing="true"
mode="Normal"
showConfirmDialog="false"
newRowPosition="Top"
allowNextRowEdit="true"
showDeleteConfirmDialog="true"
allowEditOnDblClick="true"></e-grid-editsettings>
<e-grid-columns>
<e-grid-column field="Title" headerText="Title"
width="200"
type="string"
defaultValue="-"
allowEditing="true"></e-grid-column>
</e-grid-columns>
</ejs-grid>
Grid2
<ejs-grid id="grid2"
gridLines="Horizontal">
<e-data-manager insertUrl="<CreateUrl>"
url="<ReadUrl>"
updateUrl="<UpdateUrl>"
removeUrl="<DeleteUrl>"
adaptor="WebApiAdaptor" ></e-data-manager>
<e-grid-editsettings allowAdding="false"
allowDeleting="true"
allowEditing="true"
mode="Normal"
showConfirmDialog="false"
newRowPosition="Top"
allowNextRowEdit="true"
showDeleteConfirmDialog="true"
allowEditOnDblClick="true"></e-grid-editsettings>
<e-grid-column field="Title" headerText="Title"
width="200"
type="string"
defaultValue="-"
allowEditing="true"></e-grid-column>
</ejs-grid>
- Please share a simple sample to reproduce the issue or try to reproduce the issue in the attached sample.
- Please share the Syncfusion package version you are using.
- Please share the Syncfusion script version you are using.
Joseph I.
Hi Joseph!
Thanks for the sample. it pointed us towards the right direction. The problem was caused by one of our TagHelpers.
Thanks!
- 3 Replies
- 2 Participants
-
AN Andrew
- Nov 8, 2021 02:34 PM UTC
- Nov 15, 2021 01:15 PM UTC