When no data in a column,onServerEditRow is not working

Hello,

I'm working on ej:grid using OnServerEditRow.
I tried to update a column which has no data (other column in the same row has data).  I typed something and clicked Save button in the grid, nothing happens.  I cannot save data.  However, If there's a data in a column, and I modified data and clicked Save button, onServerEditRow was fired.
   

I attached sample solution that happens this issue. 

1. Try to edit first_name column on a first row in grid.  Then click Save Button.  Nothing happens. (onServerEditRow  event not fired)
2. Try to edit first_name column on a second row in grid.  Then click Save Button.  onServerEditRow event will be fired.

How should I fix this issue?

Best Regards,
Yukiko



Attachment: test_39045309.7z

3 Replies

SS Seeni Sakthi Kumar Seeni Raj Syncfusion Team August 3, 2018 11:14 AM UTC

Hi Yukiko,  
 
Thanks for contacting Syncfusion Support.  
 
We have analyzed the reported problem and found that the cause of problem is null value set to the first row for first_name column. In this case, type has been set to null instead of string|number. To overcome this problem, we suggest to set the Type as “string” as shown in the following code example. 
 
<ej:Grid ID="Grid1" runat="server" AllowPaging="True" DataSourceID="test34" ClientIDMode="AutoID" OnServerAddRow="Grid1_ServerAddRow" OnServerEditRow="Grid1_ServerEditRow"> 
    <Columns> 
 
            ..... 
 
       <ej:Column Field="first_name" Type="string" Width="200px"> 
        </ej:Column> 
   </Columns> 
</ej:Grid> 
 
Please find the modified sample:  
 
 
Regards,  
Seeni Sakthi Kumar S. 



YI Yukiko Imazu August 3, 2018 01:25 PM UTC

Hi Seeni Sakthi Kumar,

Thank you for replying.
I could fix this issue by adding Type="string".

Thank you,
Yukiko



SS Seeni Sakthi Kumar Seeni Raj Syncfusion Team August 6, 2018 05:24 AM UTC

Hi Yukiko,  
 
Thanks for the update.  
 
We are happy to hear that your requirement has been resolved. Please get back to us, if you require further assistance on this.  
 
Regards,  
Seeni Sakthi Kumar S. 


Loader.
Up arrow icon