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 grid but not the scroll


I need disabled the grid, I follow these steps

But it disable the scroll, I need that user can scroll horizontal


3 Replies

TS Thavasianand Sankaranarayanan Syncfusion Team September 6, 2019 10:48 AM UTC

Hi Manolo,  
Greetings from Syncfusion support. 
We have analyzed the reported query “Disable grid but not the scrollat our end. 
We have achieved your requirement using manually adding and removing disablegrid class for grid elements. We suggest using the getContentTable and getHeaderTable method to fulfill your need.  
Refer the below help documentation. 
For your request, please refer the below code and sample 
.disablegrid { 
        pointer-events: none; 
        opacity: 0.4; 
    .wrapper { 
        cursor: not-allowed; 
public btnClick(): void { 
        if (this.Grid.getContentTable().classList.contains('disablegrid')) { 
        } else { 
            // To disable the grid table 
            // To disable the grid header 
            // To disable the Toolbar  
Please check the documentation/sample link and get back to us, if you require any further assistance on this. 
Thavasianand S. 

MC Manolo Capdevila September 6, 2019 12:32 PM UTC

Ok, Thanks

But, it is possible, in future, that your grid has the property disabled and do it automatically?

TS Thavasianand Sankaranarayanan Syncfusion Team September 9, 2019 11:08 AM UTC

Hi Manolo, 

By default, we can disable the complete Grid by using that single CSS which we can used in our documentation but based on your query we found that you want to disable, except scrollbars in Grid. So, for your case we need to do customization in CSS and also we can achieve this by using the CSS style alone. 


.e-grid table, .e-grid .e-toolbar { 
            opacity: 0.4; 
            pointer-events: none; 

We have modified the previously provided sample in the following link. 

Thavasianand S. 

Live Chat Icon For mobile
Up arrow icon