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

How to freeze/pin columns in JS datagrid

Where can I find information how to freeze/pin columns in JS grid widget? I didn't find any information here.

3 Replies

FS Farveen Sulthana Thameeztheen Basha Syncfusion Team June 12, 2019 06:09 AM

Hi Max, 

Thanks for contacting Syncfusion Support. 

Query#:- Where can I find information how to freeze/pin columns in JS grid widget? I didn't find any information here

We have checked your query and if you want to freeze the columns you need to specify  frozenColumns property of scrollSettings  (upto the specified frozenColumns value) at the time of scrolling.  

Please refer to the code example:- 

 
    $(function () { 
       $("#Grid").ejGrid({ 
              //The datasource "window.gridData" is referred from 'http://js.syncfusion.com/demos/web/scripts/jsondata.min.js' 
              dataSource : window.gridData, 
              allowScrolling : true, 
              scrollSettings: { width: 550, height: 300, frozenColumns: 2 },     
      }); 

Please refer to the documentation Link:- https://help.syncfusion.com/js/grid/scrolling#frozen-columns 

Please get back to us if you need any further assistance. 

Regards, 
Farveen sulthana T 



MK Max Koretskyi June 12, 2019 07:25 AM

Got it, thanks!


FS Farveen Sulthana Thameeztheen Basha Syncfusion Team June 12, 2019 11:52 PM

Hi Max, 
  
Thanks for your update. Please get back to us if you need any further assistance. 
  
Regards, 
  
Farveen sulthana T 


Loader.
Live Chat Icon For mobile
Up arrow icon