Delete records from grid doesn´t delete records

Hi,
I have a grid with two buttons in custom toolbar. Each one is activated upon condition. I want to select some records, press a button from toolbar, do some action and then delete the selected records from grid, but the records don´t disapear from grid.  I don´t know what is wrong.

In the attached file is my code.



Attachment: Page_294a6e4c.zip

3 Replies

TS Thavasianand Sankaranarayanan Syncfusion Team May 17, 2018 01:08 PM UTC

Hi Juan, 

Thanks for contacting Syncfusion support. 

We have analyzed your query and your given code example. In your given code example you have not enable the allowDeleting property of editSettings in ejGrid control. This is the root cause of your issue “Deleted record doesn’t get disappear from the Grid”.  

So, we suggest you to enable the allowDeleting property in ejGrid control. 

Refer the below code example. 


<script type="text/javascript"> 
    $(function () { 
       $("#Grid").ejGrid({ 
 
               ----         
 
              allowPaging:true, 
        
editSettings: {allowEditing: true, allowAdding: true, allowDeleting: true }, 
               
              columns: [ 
             
                   --- 
 
              ] 
       }); 
    }); 
     
</script> 


Refer the help documentation. 


Regards, 
Thavasianand S. 



JJ Jayabharathi J Syncfusion Team May 18, 2018 04:03 AM UTC

From: Juan Jose Uribe [mailto:[email protected]]
Sent: Thursday, May 17, 2018 9:38 AM
To: Syncfusion Support <[email protected]>
Subject: Re: Syncfusion support community forum 137601, Delete records from grid doesn´t delete records, has been updated. 

Thanks so much. 

Regards, Juan 



TS Thavasianand Sankaranarayanan Syncfusion Team May 21, 2018 03:49 AM UTC

Hi Juan, 
 
We are happy that the problem has been solved. 
 
Please get back to us if you need any further assistance.  
                          
Regards, 
Thavasianand S.                         


Loader.
Up arrow icon