[Solved]Edit mode continues.

I'm using ”Adapters.ODataV4Adaptor”.
Edit mode continues.

Even if the update process is completed, it remains in edit mode.
step1:Edit Mode.


step2:Edit the data.

step3:Editing is complete,but it remains in edit mode.


No problem on another page. What is the reason for staying in edit mode?

7 Replies

VN Vignesh Natarajan Syncfusion Team May 13, 2020 10:15 AM UTC

Hi Nobuhide, 
 
Thanks for contacting Syncfusion support.  
 
Query: “Even if the update process is completed, it remains in edit mode 
  
From your query we understand that you are facing issue while inserting a records into Grid using ODataV4Adaptor. The reported might occur when PrimaryKey column is not defined in Grid. To perform CRUD operation in IsPrimaryKey property must be enabled to any one of the available column whose value is null. So kindly ensure that you have defined IsPrimaryKey property to column whose values is unique. 
 
If you are still facing the issue, kindly share the following details.  
 
  1. Since the edit form is not closed. Exception might be thrown in console window.
  2. So kindly share the screenshot of the issue along with stack trace in browser console. (Ctrl+F12)
  3. Share your Grid code example.
  4. Share your Syncfusion Nuget package version.
  5. If possible share the issue reproducible sample.
 
Above requested details will be helpful for us to validate the reported issue at our end.  
 
Regards, 
Vignesh Natarajan 



NT Nobuhide T May 14, 2020 01:03 AM UTC

Hi Vignesh Natarajan,
 
Thanks for your answer. 

I added IsPrimaryKey,but it didn't work.

So I shared the issue reproducible sample.
     BlazorApp.sln


This sample uses SQLServer2019.The database backup file is also attached.
     20200514SampleDB.bak


This sample uses Syncfusion Nuget package version "18.1.0.48".


Regards, 
Nobuhide




Attachment: BlazorApp製品Sample_9dd0af6c.zip


NT Nobuhide T May 16, 2020 01:29 AM UTC

Hi Vignesh Natarajan,

I noticed that exception is output in the console window.
I shared.

Regards, 
Nobuhide

Attachment: ExceptionConsole_f7728f82.zip


NT Nobuhide T May 17, 2020 09:13 AM UTC

Hi Vignesh Natarajan,

I'm sorry for bothering you so many times. 
I solved the problem by myself. 

There was a mistake in ProductVersionsController.
return Updated(productversions);=>return Updated(dbProductversions);

It took a lot of time for me to do that.
Please let me know if you know of any good troubleshooting.

Regards, 
Nobuhide


RN Rahul Narayanasamy Syncfusion Team May 18, 2020 03:24 PM UTC

Hi Nobuhide, 

Thanks for the update. 

We are happy to hear that you have resolved the reported problem at yourself. 

For troubleshooting the problem, we suggest you to bind the OnActionFailure event to Grid and you can found the cause of the problem. 

Reference: 

Please get back to us if you need further assistance. 

Regards, 
Rahul 



NT Nobuhide T May 19, 2020 03:39 AM UTC

Hi Rahul Narayanasamy,

Thank you for your advice.

I understand the OnActionFailure event as your suggestion.

Regards,
Nobuhide


RN Rahul Narayanasamy Syncfusion Team May 20, 2020 05:09 AM UTC

Hi Nobuhide, 
 
Thanks for the update. 
 
Please get back to us if you need further assistance. 
 
Regards, 
Rahul 


Loader.
Up arrow icon