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 11:09 AM UTC

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 12:25 PM UTC

Got it, thanks!


FS Farveen Sulthana Thameeztheen Basha Syncfusion Team June 13, 2019 04:52 AM UTC

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


Loader.
Up arrow icon