We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Disable Row Selecting/checking when entering Edit Mode

Hi,
i have some data grid in a form, and i use batch edit mode. Now when i enter in edit mode it checks the current row and deselects everything selected before.
So i think if i disable row selection on editing, i have both problems solved.
I looked in the documentation but didn't find the answer.
Can you point me please in the right direction?
thank you

1 Reply

TS Thavasianand Sankaranarayanan Syncfusion Team April 9, 2019 11:30 AM UTC

Hi Miguel, 

Greeting from Syncfusion support. 

Query: Now when i enter in edit mode it checks the current row and deselects everything selected before. 
 
We have analyzed your requirement and we suggest you to use the below way to achieve your requirement. In the below sample, we have enable persistence for Grid to maintain the selection. 

Please check the below code example and sample for more information. 

let grid: Grid = new Grid( 
    { 
        dataSource: orderData, 
        editSettings: { allowEditing: true, allowAdding: true, allowDeleting: true, mode: 'Batch' }, 
        allowPaging: true, 
        selectionSettings: {type:'Multiple', persistSelection: true}, 
        pageSettings: {pageCount: 5}, 
        toolbar: ['Add', 'Delete', 'Update', 'Cancel'], 
        columns: [ 
            { 
                type:'checkbox', width: 50, visible: false, 
            }, 
           . . . . . 
    }); 
grid.appendTo('#Grid'); 



Help documentation :  




Please get back to us if the provided solution does not meet your requirement. 

Regards, 
Thavasianand S. 


Loader.
Live Chat Icon For mobile
Up arrow icon