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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Selection checkbox column shows up in dialog edit

Thread ID:

Created:

Updated:

Platform:

Replies:

142585 Feb 11,2019 10:21 AM UTC Feb 12,2019 04:16 AM UTC JavaScript - EJ 2 3
loading
Tags: Grid
Samuel
Asked On February 11, 2019 10:21 AM UTC

I have a column setup in grid to allow me select rows. but on edit in dialog it shows up.
Ho do I make it not show up in dialog?

See pic below

Thanks




Pavithra Subramaniyam [Syncfusion]
Replied On February 11, 2019 11:01 AM UTC

Hi Samuel, 
 
Thanks for contacting Syncfusion support.  
 
Query #1: How do I make it not show up in dialog? 
 
You can achieve your requirement by removing the checkbox row in the “actionComplete” event with ‘beginEdit” and “add” requestType . Please refer to the below code example and Documentation link. 
 
[index.cshtml]  
      var grid = new ej.grids.Grid({ 
        dataSource: data, 
        allowPaging: true, 
        toolbar: ['Add', 'Edit', 'Delete', 'Update', 'Cancel'], 
        editSettings: { allowEditing: true, allowAdding: true, allowDeleting: true, mode: 'Dialog'}, 
        actionComplete: (e) => { 
            if (e.requestType == 'beginEdit' || e.requestType == 'add') { 
                e.form.querySelector("tr").remove()  // in this sample check box is in first row 
            } 
        }, 
        pageSettings: { pageCount: 5 }, 
        toolbar: ['Add', 'Edit', 'Delete'], 
        columns: [ 
            { type: "checkbox", width: 50 }, 
            { field: 'OrderID', headerText: 'ID', visible:false, textAlign: 'Right', width: 120, isPrimaryKey: true } 
                          .   .  . 
        ] 
    }); 
 
    grid.appendTo('#Grid'); 
 
                              https://ej2.syncfusion.com/javascript/documentation/api/grid/editEventArgs/  
 
Sample               : https://stackblitz.com/edit/u1f4pw-nowcuh?file=index.js  
 
Please get back to us if you need any further assistance 
 
Regards, 
Pavithra S. 


Samuel
Replied On February 11, 2019 03:28 PM UTC

This worked like a charm! Thank you very much

Pavithra Subramaniyam [Syncfusion]
Replied On February 12, 2019 04:16 AM UTC

Hi Samuel,  

Thanks for your update.  

Please contact us if you need any further assistance. As always, we will be happy to assist you.  

Regards,  
Pavithra S. 



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;