We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Problems with saving a modified record with Inline Editing Template

Thread ID:





130262 May 3,2017 09:34 AM UTC May 4,2017 10:27 AM UTC ASP.NET MVC 1
Tags: Grid
Asked On May 3, 2017 09:34 AM UTC


I have got a grid like this:

.Datasource(ds =>ds.Json((IEnumerable<Site>)Model.Sites.ToList()).UpdateURL("../NormalSiteUpdate").InsertURL("../NormalSiteInsert").RemoveURL("../NormalSiteDelete").Adaptor(AdaptorType.RemoteSaveAdaptor))
.EditSettings(edit => { edit.AllowAdding().AllowDeleting().AllowEditing().EditMode(EditMode.InlineFormTemplate).InlineFormTemplateID("#customerInlineFormTemplate"); })
                  .ToolbarSettings(toolbar =>
                      toolbar.ShowToolbar().ToolbarItems(items =>
                  .Columns(col =>
                      col.Field("InsertDate").HeaderText("Data Ins.").TextAlign(TextAlign.Center).DefaultValue(DateTime.Now).EditType(EditingType.DateTimePicker).Format("{0:dd/MM/yyyy}").Visible(false).Width(20).Add();
                  .ClientSideEvents(eve =>

The custom editing inline template is defined as below:

<script id="customerInlineFormTemplate" type="text/template">
    <div class="Row">
        <div class="SubHeaderColumn">Dettagli Sito Operativo</div>
        <div class="siteGroup">
            <table class="SiteTable" cellpadding="2">
                    <col width="10%">
                    <col width="90%">
                        <td class="siteData">
                            <input id="SiteName" name="SiteName" value="{{: SiteName}}" class="e-field e-ejinputtext valid" />
                            <input type="hidden" id="SiteId" name="SiteId" value="{{: SiteId}}" />
                            <input type="hidden" id="CustomerId" name="CustomerId" value="{{: CustomerId}}" />
                            <input id="InsertDate" name="InsertDate" value="{{: InsertDate}}" />
                        <td>Sede Legale</td>
                        <td class="siteData">
                            {{if IsLegalSite}} <input type="checkbox" id="IsLegalSite" checked="checked" name="IsLegalSite" class="e-field e-ejinputtext valid" style="text-align: center;" />{{else}} <input type="checkbox" id="IsLegalSite" name="IsLegalSite" class="e-field e-ejinputtext valid" style="text-align: center;" />{{/if}}
                        <td>Sede Operativa</td>
                        <td class="siteData">
                            {{if IsOperatingSite}} <input type="checkbox" id="IsOperatingSite" checked="checked" name="IsOperatingSite" class="e-field e-ejinputtext valid" style="text-align: center;" />{{else}} <input type="checkbox" id="IsOperatingSite" name="IsOperatingSite" class="e-field e-ejinputtext valid" style="text-align: center;" />{{/if}}
                        <td class="siteData">
                            <select id="Country" name="Country">
                                <option value="Albania">Albania</option>
                                <option value="Andorra">Andorra</option>
                                <option value="Austria">Austria</option>
                                <option value="Belgio">Belgio</option>
                                <option value="Danimarca">Danimarca</option>
                                <option value="Finlandia">Finlandia</option>
                                <option value="Francia">Francia</option>
                                <option value="Germania">Germania</option>
                                <option value="Gran Bretagna">Gran Bretagna</option>
                                <option value="Irlanda">Irlanda</option>
                                <option value="Italia">Italia</option>
                                <option value="Norvegia">Norvegia</option>
                                <option value="Polonia">Polonia</option>
                                <option value="Portogallo">Portogallo</option>
                                <option value="Spagna">Spagna</option>
                                <option value="Svezia">Svezia</option>
                                <option value="Svizzera">Svizzera</option>
                        <td class="siteData">
                            <input id="Region" name="Region" value="{{: Region}}" class="e-field e-ejinputtext valid" style="display: inline-block; text-align: left;" />
                        <td class="siteData">
                            <input id="Province" name="Province" value="{{: Province}}" class="e-field e-ejinputtext valid" style="text-align: left;" />
        <br />

There is a very strange behaviour:

If I add or delete a record from the grid, everything is OK.
When I try to modify a record and then click on the Save button, changes are recognized only if I modify the text of the first field (highlighted). 
If I leave that field unchanged, when I save the record, the args.requestType is CANCEL and so the update CRUD method is not called.

I'm using version of Essential Studio and updated the js libraries...

Can you help me?


Jayaprakash Kamaraj [Syncfusion]
Replied On May 4, 2017 10:27 AM UTC

Hi Claudio, 

Thank you for contacting Syncfusion support. 
The reported issue is a known issue. This issue Server side is not triggered while using inline form template” has been fixed internally and the fix for the issue will be included in our Volume 2, 2017 service pack 1 release which has been scheduled to be roll out by the month of May 2017. 
We can also provide a custom patch for this if you are in need of a solution sooner. 
As a workaround we suggest you to enable the this._isEditChangesApplied in the actionBegin event of ejGrid with the condition of requestType as save.  

    ViewBag.Title = "Home Page"; 
@using Syncfusion.JavaScript.Models 
      .Datasource(d => d.Json((IEnumerable<object>)ViewBag.data).UpdateURL("/Home/ChildUpdate").InsertURL("/Home/ChildInsert").RemoveURL("/Home/ChildDelete").Adaptor(AdaptorType.RemoteSaveAdaptor)) 
                  .EditSettings(edit => { edit.AllowAdding().AllowDeleting().AllowEditing().EditMode(EditMode.InlineFormTemplate).InlineFormTemplateID("#customerInlineFormTemplate"); }) 
                        .ClientSideEvents(eve => eve.Load("load")) 
                        .Columns(col => 
<script type="text/javascript"> 
    function begin(args) { 
            if (args.requestType == "save")  
                this._isEditChangesApplied = true;  


Jayaprakash K. 



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon