Blank line when add new record

Hello!

I'm using the DataGrid in ASP.NET CORE 5 in Custom Dialog mode (sample code attached).
When I add a new record, a blank line appears in the grid. 
Please, what am I doing wrong?

Thanks.

Elio Yamaguchi

Attachment: GridTest_d35637cf.zip

9 Replies 1 reply marked as answer

RR Rajapandi Ravi Syncfusion Team March 16, 2021 10:56 AM UTC

Hi Elio, 

Greetings from syncfusion support 

Based on your query, we have checked your shared sample and try to reproduce your reported problem, but it was unsuccessful. The added record was appearing in the Grid. And from validating your provided sample we found that the Delete action was not working properly. We have modified your delete action codes and now it was working fine. Please refer the below sample and video demo for more information. 


              public async Task<IActionResult> CrudUpdateAsync([FromBody] CRUDModel<MyModel> value, string action) 
        { 
            try 
            { 
                await Task.CompletedTask; 
                switch (value.Action) 
                { 
                    case "insert": 
                        if (ModelState.IsValid) 
                        { 
                            int id = Records.Count + 1; 
                            value.Value.Id = id; 
                            Records.Add(value.Value); 
                        } 
                        break; 
                    case "update": 
                        if (ModelState.IsValid) 
                        { 
                           var ru = Records.FirstOrDefault(x => x.Id == value.Value.Id); 
                            if (ru != null) ru.Description = value.Value.Description; 
                        } 
                        break; 
                    case "remove":           
                        var rd = Records.FirstOrDefault(x => x.Id == int.Parse(value.Key.ToString())); 
                        Records.Remove(rd);                 //by using key property we have processed  
                        return Json(value);                   the delete action 
                } 
                return Json(value.Value); 
            } 
            catch (Exception ex) 
            { 
                return NotFound(ex.Message); 
            } 
        } 




Regards,
Rajapandi R 


Marked as answer

EL Elio March 16, 2021 11:44 PM UTC

Rajapandi Ravi, thanks for your attention.

I watched the video and was surprised to see that the inclusion is working, which leads me to believe that the problem is in my environment.
I am sending a video showing what is happening in my environment.
In January/2021, this same code was working properly. Is there any incompatibility with any windows update (Windows 10)?

Thanks

Elio Yamaguchi

Attachment: Video_66dc6016.zip


RR Rajapandi Ravi Syncfusion Team March 19, 2021 10:25 AM UTC

Hi Elio, 

Thanks for your patience 

After validating further with the source, we have confirmed and logged this as a bug in the component. So, we have considered “Blank line when add new record” as a defect and logged a report for the same. We will include the defect fix in our upcoming March 31st , 2021 patch release. 

You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link. 


Regards,  
Rajapandi 




EL Elio March 19, 2021 12:07 PM UTC

Hi Rajapandi,

Thank you for your feedback. I will be waiting for the correction.

Regards,
Elio


RR Rajapandi Ravi Syncfusion Team March 22, 2021 05:53 AM UTC

Hi Elio, 

Thankyou. Currently we are working on it and we will update you details as we promised. 

Regards, 
Rajapandi R 
 



RR Rajapandi Ravi Syncfusion Team March 31, 2021 09:18 AM UTC

Hi Elio,  

Sorry for the inconvenience caused.    
  
Due to stability reason and release works, we are unable to include the fix in our today’s weekly release. We will include this fix for the reported issue in our upcoming Patch release which is expected to be rolled out on 7th April 2021.   

Until then, we appreciate your patience.   

Regards,  
Rajapandi R 



RR Rajapandi Ravi Syncfusion Team April 7, 2021 11:46 AM UTC

Hi Elio, 

We are glad to announce that our Essential Javascript2 patch release (v19.1.55) has been rolled out successfully. In this release we have added the fix for “Blank line when add new record” issue. So please update your package to this version to include the fix. 



We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
 
Regards,            
Rajapandi R 



EL Elio April 10, 2021 03:43 PM UTC

Hi Rajapandi,

I did the tests with the new version and it's ok.

Thanks
Elio


RR Rajapandi Ravi Syncfusion Team April 12, 2021 04:34 AM UTC

Hi Elio, 

Thanks for the update. 

We are happy to hear that your issue has been resolved. 

Please get back to us if you need further assistance. 

Regards, 
Rajapandi R 


Loader.
Up arrow icon