Hello,
I have a grid that's been working well but when I add the data manager to to the grid control the grid stop rendering. The purpose of the data manager is to perform database crud operations on the server. I have added a function on the ImportSessions controller called Insert.
<ejs-grid id="Grid" [email protected] load="load" allowPaging="true" allowReordering="true" allowResizing="true" allowSorting="true" allowTextWrap="true" showColumnChooser="true" allowGrouping="true" allowFiltering="true"
toolbar="@(new List<string>() { "ColumnChooser", "Edit"})" gridLines="Both">
<e-data-manager json="@ViewBag.DataSrouce" adaptor="RemoteSaveAdaptor" insertUrl="/ImportSessions/Insert"></e-data-manager>
<e-grid-filtersettings type="Excel" columns="@(new List<object>()
{ new { field = $"{ImportSessionDetailsFinancialPeriod.Column.ImportSessionFinancialPeriod}",
matchCase = false, @operator = "equal", predicate = "and",
value = $"{Model.ImportSessionsLatestFinancialPeriod}" } })">
</e-grid-filtersettings>
<e-grid-editSettings allowAdding="true" allowDeleting="true" allowEditing="true" mode="Dialog"></e-grid-editSettings>
<e-grid-textwrapsettings wrapMode="Content"></e-grid-textwrapsettings>
<e-grid-pageSettings pageSize="20"></e-grid-pageSettings>
<e-grid-groupSettings showDropArea="true" columns="@(new string[] { "TradingAccountId" })"></e-grid-groupSettings>
<e-grid-columns>
<e-grid-column field="ImportSessionId" isPrimaryKey="true" isIdentity="true" visible="false" allowFiltering="false"></e-grid-column>
<e-grid-column field="TradingAccountId" headerText="Account" textAlign="Left" width="80" visible="true" editType="dropdownedit" edit="new {@params = DropDownList }"></e-grid-column>
<e-grid-column field="ImportSession" headerText="Import" textAlign="Left" width="160"></e-grid-column>
<e-grid-column field="ImportSessionDate" headerText="Imported" width="60" allowEditing="false" editType="datepickeredit"></e-grid-column>
<e-grid-column field="ImportSessionDataSourceRows" headerText="Rows" width="40" textAlign="Left" allowEditing="false"></e-grid-column>
<e-grid-column field="ImportFileFormatType" headerText="Type" width="60" allowEditing="false"></e-grid-column>
<e-grid-column field="ImportSessionFinancialPeriod" headerText="Period" width="60" allowEditing="false"></e-grid-column>
<e-grid-column field="ImportSessionPeriodStartDate" headerText="First" width="60" allowEditing="false"></e-grid-column>
<e-grid-column field="ImportSessionPeriodEndDate" headerText="Last" width="60" allowEditing="false"></e-grid-column>
</e-grid-columns>
</ejs-grid>