- Home
- Forum
- ASP.NET Core
- grid crud operation
grid crud operation
Hi
I have follow your sample for manage crud operation on controller
https://www.syncfusion.com/forums/126220/how-to-pass-complete-model-from-dialogeditortemplate-to-controller-for-crud-operation
but on the event in the controller the value is always null
public ActionResult CellEditUpdate([FromBody]CRUDModel<DLCore.Models.Maintenance> value)
1 the class DLCore.Models.Maintenance in public int he project
2 ther is no error
3 IsPrimaryKey” is defined
What other controls I have to do?
thank you for your support
Franco
SIGN IN To post a reply.
3 Replies
MF
Mohammed Farook J
Syncfusion Team
January 17, 2017 05:25 AM UTC
Hi Freno,
Thanks for contacting Syncfusion Supports
We have validated your reported issue and we unable to reproduced . Please find the General root cause of this issue.
1. Did you model class property has correct?
2. Please share the sample if it possible or modified the attached sample with issue?.
3. Please share the grid full code snippet.
4. Is it any grid field is not available in dataSource.
Sample : http://www.syncfusion.com/downloads/support/directtrac/general/ze/WebApplication8-1960312378.zip.
Regards,
J.Mohammed Farook
FP
franco perduca
January 17, 2017 06:59 AM UTC
Hi
Teh problem appear only with the
.EditSettings(edit => { edit.AllowAdding().AllowDeleting().AllowEditing().EditMode(EditMode.DialogTemplate).DialogEditorTemplateID("#template").ShowDeleteConfirmDialog(); })
with this code
.EditSettings(edit => { edit.AllowAdding().AllowDeleting().AllowEditing(); })
it's works
Thank you
Regards
Franco
MF
Mohammed Farook J
Syncfusion Team
January 18, 2017 01:32 PM UTC
Hi Freno,
We have validated your reported issue and we unable to reproduced at our end. Please find the sample for your reference.
Screenshot:
This error may occur the following root cause :
1. If you send incorrect value type to server , this error may occur.
For eg: if you have date object but did you send string value means this issue will thrown.
2. Did you send the grid filed value but it not available dataSource
Regards,
J.Mohammed Farook
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
FP franco perduca
- Jan 16, 2017 09:59 AM UTC
- Jan 18, 2017 01:32 PM UTC