Transpose rows and columns of an Angular Grid

Hello Syncfusion forum,

is there a Built-In funcionality to transpose an Angular Grid (swap rows and columns)? 

5 Replies

TS Thiyagu Subramani Syncfusion Team June 24, 2020 07:06 AM UTC

Hi Jonas, 

Thanks for contacting Syncfusion forum. 

By default we have an option for allowReordering and allowRowDragAndDrop property used to swap the grid columns and rows respectively. Please find the below samples and reference links. 

 
                                         : https://ej2.syncfusion.com/angular/demos/#/material/grid/column/reorder 

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

Regards, 
Thiyagu S 



JC Jonas Czeslik June 24, 2020 11:48 AM UTC

That is actually not what I meant. Transposing a grid is referred to swap columns with rows and not swapping columns with columns or rows with rows. For example: I have a grid like this:

          C1     |      C2     |     C3
R1     ...              ...             ...

R2     ...              ...             ...

R3     ...              ...             ...

Then, I want to create a grid like the following one, which is e.g. often used for displaying time rows. 


          R1     |      R2     |     R3
C1     ...              ...             ...

C2     ...              ...             ...

C3     ...              ...             ...


TS Thiyagu Subramani Syncfusion Team June 25, 2020 01:42 PM UTC


Hi Jonas, 

Sorry for the inconvenience and thank you for your update. 

By default, there is no support for transposing grid columns with rows in our current grid architecture. 

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

Regards, 
Thiyagu S 



CC Calculei Calculei June 28, 2024 09:47 PM UTC

Hi,

Any updates on this capability?



AR Aishwarya Rameshbabu Syncfusion Team July 9, 2024 03:06 AM UTC

Hi Calculei Calculei,


We have addressed your query in the forum below. Please follow up there for further updates.

https://www.syncfusion.com/forums/189039/inverting-the-rows-and-columns-in-ej2-angular-grid-branched-from-161011


Regards

Aishwarya R



Loader.
Up arrow icon