Hi and thank's for your answer.
It's very difficult for me to isolate and make a sample with my problem since it is a part of a big project.
I have not tested this functionnality since a long time, so i don't know when it did not work anymore.
The code is quite simple :
<ej-grid id="FlatGridEchantillonAnalyses" locale=@GetMsg("MESID_LOCALIZATION") allow-grouping="false" enable-persistence="false" enable-touch="true" show-column-chooser="false" databound="databound" action-complete="actioncomplete" allow-reordering="true" allow-resize-to-fit="true" allow-resizing="true" allow-paging="false" allow-filtering="false" allow-sorting="false" load="onLoad">
<e-page-settings
[email protected](HttpContextAccessor.HttpContext.Session.GetString("strPrefNbRowsPerPage")) page-size-list="new List<int> { 10,20,30,40,50,90 }"></e-page-settings>
<e-edit-settings
[email protected](HttpContextAccessor.HttpContext.Session.GetString("strUserIsAutoControle")) edit-mode="Batch" show-confirm-dialog="true"></e-edit-settings>
<e-datamanager json="ViewBag.datasource" batch-url="/Logged/EchantillonAnalysesListCellEditUpdate" adaptor="remoteSaveAdaptor" />
<e-columns>
<e-column field="iECH_ANA_ID" header-text=@GetMsg("LIBID_ECHANT_ID") show-in-column-chooser="false" is-primary-key="true" text-align="Right" width="0" allow-editing="false"></e-column>
<e-column field="iECH_ANA_ECH_ID" header-text=@GetMsg("LIBID_ECHANT_ID") show-in-column-chooser="false" text-align="Right" width="0" allow-editing="false"></e-column>
<e-column field="strANA_LibelleParam" header-text=@GetMsg("LIBID_ANALYSE_LIBELLEPARAM") width="40" allow-editing="false"></e-column>
<e-column field="strANA_LibelleMethode" header-text=@GetMsg("LIBID_ANALYSE_LIBELLEMETHODE") width="40" allow-editing="false"></e-column>
<e-column field="strANA_Unite" header-text=@GetMsg("LIBID_ANALYSE_UNITE") width="15" allow-editing="false"></e-column>
<e-column field="strANA_Valeurs_Limites" header-text=@GetMsg("LIBID_ANALYSE_VALEURSLIMITES") width="25" allow-editing="false" format="{0:n0}"></e-column>
<e-column field="bANA_Cofrac" header-text=@GetMsg("LIBID_ANALYSE_COFRAC") text-align="Center" width="12" allow-editing="false" validation-rules='new Dictionary<string, object>() { { "customRegex", "" } }'></e-column>
<e-column field="strECH_ANA_Resultat" header-text=@GetMsg("LIBID_ANALYSE_RESULTAT") width="25" format="{0:n0}" allow-editing=@((string)ViewData["Sous_Traitant"] == Constantes.strAutoControle)></e-column>
<e-column field="strECH_ANA_Interpretation" header-text=@GetMsg("LIBID_ANALYSE_INTERPRETATION") width="30" allow-editing="false"></e-column>
<e-column field="strEtat" header-text="" show-in-column-chooser="false" width="11" template="<img style='width: 30px; height: 30px' src='/images/Rond{{:strEtat}}.png'>" allow-filtering="false" allow-editing="false" allow-resizing="false"></e-column>
</e-columns>
</ej-grid>
<input type="button" id="Save" onClick="return Save();" value='@GetMsg("BTNID_ANALYSESSAVE")' class="btn btn-success" />
<script type="text/javascript">
function Save() {
var grid = $("#FlatGridEchantillonAnalyses").ejGrid("instance");
grid.batchSave();
}
And in my controler :
As you see, i Always get a null value.
Can you please give me some clues i can check. Can you tell me in what case the value is passed null to the controler ?