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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

grid row disabled

Thread ID:





149044 Nov 12,2019 01:40 PM UTC Nov 22,2019 06:40 AM UTC Angular - EJ 2 5
Tags: Grid
serdar çelebi
Asked On November 12, 2019 01:40 PM UTC

Hi Team,

I want to disabled specific rows but i didnt find how to do.

Thanks in advance

Seeni Sakthi Kumar Seeni Raj [Syncfusion]
Replied On November 12, 2019 01:49 PM UTC

Hi Serdar,

We suspect that you would like to disable editing for particular rows based on the value. We have already discussed about this in the following Help document.  

Seeni Sakthi Kumar S 

serdar çelebi
Replied On November 12, 2019 01:55 PM UTC

thanks for reply.

i want to disabled like this link "https://ej2.syncfusion.com/angular/documentation/grid/how-to/enable-disable-grid-and-its-actions/" and this examples disabled all grid rows but i didnt find specific rows.

Seeni Sakthi Kumar Seeni Raj [Syncfusion]
Replied On November 13, 2019 06:39 AM UTC

Hi Serdar , 
Greetings from Syncfusion 
We have validated your query and attached a working sample. In the below sample we used the actionBegin event and a rowDataBound to achieve your requirement. Here we have disabled the alternate rows using a modulo condition. Refer to the code example. 
    <ejs-grid #grid [dataSource]='data' [editSettings]='edit' (actionBegin)='actionBegin($event)' (rowDataBound)='rowDataBound($event)' > 
            <e-column field='OrderID' isPrimaryKey='true' headerText='Order ID' width='120' textAlign='Right'></e-column> 
                  . ..  
                   . . .  
    actionBegin (args) { 
       if (args.requestType === 'beginEdit' && args.row.classList.contains('e-disabled')) { 
        args.cancel = true; 
    rowDataBound(e) { 
      if(e.data.OrderID % 2 === 0) { 

Please get back to us if you need further assistance 

Seeni Sakthi Kumar S 

william peterson
Replied On November 21, 2019 03:00 PM UTC

Using the actionBegin event of Grid is what you need as far as I can say. For batch mode of editing, you can use CellEdit event of Grid.

Seeni Sakthi Kumar Seeni Raj [Syncfusion]
Replied On November 22, 2019 06:40 AM UTC

Hi William,

Yes, similar to the normal edit mode, batch edit mode uses the cellEdit event for cell manipulation. Thanks for your suggestion.


Seeni Sakthi Kumar S 


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

Live Chat Icon For mobile
Live Chat Icon