173
Views
6
Comments
Solved
[OutSystems Data Grid] How to vertically align the contents of merged cells
outsystems-data-grid
Reactive icon
Forge asset by OutSystems

I use MergeColumnCells Client Action to Grouping Cell have same value. 

I can align cell's values horizontally with Align property in Column Optional Confings. 

But if i want to align them vertically, what should i do ?

2022-11-12 11-28-30
Gonçalo Martins
Staff
Solution

Hello @JaeHun Park 

In that case, you can simply add the following CSS selector:

.wj-flexgrid .wj-cell:not(.wj-hasdropdown):not(.wj-header) > * {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

Cheers,
GM

2023-07-04 22-25-22
Mohamed Medhat

Hi @JaeHun Park,

what you can do is to add css class (e.g. TableRecords_CellMerge) and apply this class to the container that hold the expression.

.TableRecords_CellMerge {

    text-align: center;

}


UserImage.jpg
JaeHun Park

Thanks! @Mohamed Medhat 

But i got second problem. 

I need "text-overflow : ellipsis" property.

However if i use "display : flex" , ellipsis doesn't work like image. So i added ellipsis  property at element.style in chrome. but nothing changed. 

Could you help me one more?   

Thanks you. 


2022-11-12 11-28-30
Gonçalo Martins
Staff

Hello @JaeHun Park 

Please check directly on Wijmo's documentation for the right way to implement this on your CSS (check the styles.css file):

Hope it helps!

Cheers,
GM


UserImage.jpg
JaeHun Park

Hi @Gonçalo Martins 


First, I solved problem with your help. Thanks you!

And then i need "text-overflow : ellipsis" property.

However if i use "display : flex" , ellipsis doesn't work like image. So i added ellipsis  property at element.style in chrome. but nothing changed. 

Could you help me one more?   

Thanks you. 

2022-11-12 11-28-30
Gonçalo Martins
Staff
Solution

Hello @JaeHun Park 

In that case, you can simply add the following CSS selector:

.wj-flexgrid .wj-cell:not(.wj-hasdropdown):not(.wj-header) > * {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

Cheers,
GM

UserImage.jpg
JaeHun Park

Hello @Gonçalo Martins 

Thanks you for your help GM. 

I didn't complete that problem. So i decide to proper width of cells.

Anyway, i really appreciate to you GM. Thanks you.

Have a nice day! 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.