Frozen right Side Column in Grid

Hi Team,

How to frozen right side column in grid?

7 Replies 1 reply marked as answer

MS Manivel Sellamuthu Syncfusion Team October 16, 2020 09:05 AM UTC

Hi Deepak, 

Greetings from Syncfusion support. 

By default in EJ2 Grid the freezing feature from the right side columns is not supported in Grid . We have already logged this as a feature request ‘Support for moving Frozen columns to the Right Side of Grid’ and We will include the feature support - “Support for moving Frozen columns to the Right Side of Grid” in our upcoming Volume 4 Main Release. we will update you once it was completed. We appreciate your patience until then.  

You can track the status of this feature through the below feedback link. 


Regards, 
Manivel 



DJ Deepak Jain November 11, 2020 05:24 AM UTC

Hello Team,

Is there any update on this feature ?


MS Manivel Sellamuthu Syncfusion Team November 12, 2020 08:38 AM UTC

Hi Deepak, 

Thanks for your update. 

We have already started working on this feature and it will be included in the upcoming Volume 4, 2020 Release, Which is expected to be released in the month of December. 
We will notify once the feature is implemented. Until then we appreciate your patience. 

Regards, 
Manivel 



DJ Deepak Jain November 23, 2020 04:20 AM UTC

Thanks for your update


MS Manivel Sellamuthu Syncfusion Team November 23, 2020 06:18 AM UTC

Hi Deepak, 

Thanks for your update. 

You can track the status of this feature through the below feedback link.  


We will notify you once the feature is implemented. Please let us know, if you need further assistance. 

Regards, 
Manivel 



NG Nagendra Gupta March 10, 2021 06:33 AM UTC

Hi Team,


Thanks for the feature. But unfortunately, I am unable to use this with column binding from JSON.  

 [columns]="columnList" 


column.freeze = 'right'

  "@syncfusion/ej2-angular-grids""^18.4.47",


VS Vignesh Sivagnanam Syncfusion Team March 11, 2021 11:42 AM UTC

Hi Nagendra  

Thanks for the update 

Based on your query we found that you have faced difficulties in implementing the feature to the grid. So, we have prepared a sample and in this sample we have provided the right frozen column to the grid. 

Please refer the below Sample and Code example for your reference, 


app.component.html 

    <ejs-grid [dataSource]='data' height='500' [columns]="orderColumns">  </ejs-grid> 
…………………………………………………………………. 

app.component.ts 

export class AppComponent { 
  public data: Object[] = []; 
  public orderColumns: ColumnModel[]; 
  ngOnInit(): void { 
    this.data = orderDetails; 

    this.orderColumns = [ 
      { 
        field: "OrderID", 
        headerText: "Order ID", 
        width: "180", 
        textAlign: "Right" 
      }, 
      …………………………………… 
      { 
        field: "ShipCountry", 
        headerText: "Ship Country", 
        width: "180", 
        freeze: "Right", 
        minWidth: 10 
      }, 
    ]; 
    this.orderColumns.forEach(column => { 
      if (column.field === "CustomerName") {  
        column.freeze = "Right";                                                     //From you code example, we have iterated  
      }                                                                                                     the columns and provide the freeze for particular column. 
    }); 
  } 




Regards 
Vignesh Sivagnanam 


Marked as answer
Loader.
Up arrow icon