Computed Columns in New record shown as undefined

Hi,

I have an issue with insert function in grid control. I am using the template for the editing, the newly added record  is shown on the grid after the add function, however fields which are calculated in the server code are displaying as "undefined". Reloading the page will show the correct data. 


Any help would be appreciated. 


Thanks



3 Replies

RR Rajapandi Ravi Syncfusion Team October 21, 2021 12:30 PM UTC

Hi Swee, 

Greetings from Syncfusion support 

Before we start providing solution on your query, we need some information for our clarification. Please share the below details that will be helpful for us to provide better solution. 

1)           Please share your Syncfusion package version 

2)           In your query you have mentioned that “I am using the template for the editing”. So please confirm you are using column template or cell edit template for that column. 

3)           Please share the details about what adaptors you are used to bind the datasource to the Grid. 

4)           Please share your complete Grid code(client and server side). We would like to see your Grid initialization and server side Insert method code. 

5)           Please share the issue scenario in video demonstration format. 


Regards, 
Rajapandi R


SS Swee Sin October 23, 2021 12:43 PM UTC

Hi Rajapandi R,


  1. 19.1.56
  2. I mean template form. 
  3. editSettings: {

                                allowEditing: true,

                                allowAdding: true,

                                allowDeleting: false,

                                allowFiltering: true,

                                mode: 'Dialog',

                                template: "#templateForm",

                            }


  4. RemoteSaveAdaptor

I hope you would be able to shred some lights with above info. Thanks!


RR Rajapandi Ravi Syncfusion Team October 25, 2021 01:25 PM UTC

Hi Swee, 

Thanks for the update 

The reported problem seems to be a known bug from our end, and it has been already fixed in our earlier version. we have included the fix for “Blank line appears when a new record is added using Remote save Adaptor” issue. 


So please update your package to the latest version to include the fix. For your reference we have attached a working sample. Please refer the below sample and video demo for more information. 



If you still facing the issue, please share the below details that will be helpful for us to provide better solution. 

1)            Please share your complete Grid rendering code (client and server side). 

2)            Please share your server side Insert method code, we would like to see how you are returning the result. 

3)            Please share the network tab window screenshot, we would like to see in which format the request will sends to the server and also check how it return the response. 

4)            Please share the issue scenario in video demonstration format. 

5)            Please share your Layout.cshtml page. 

6)            If possible, please share any issue reproducing sample or try to reproduce with our above attached sample. 

Regards, 
Rajapandi R 


Loader.
Up arrow icon