1

I want the full header text of the Wijmo FlexGrid header visible:

See Image.

How can I do it with CSS?

DimaSan
  • 12,264
  • 11
  • 65
  • 75
srashtisj
  • 151
  • 4
  • 19

4 Answers4

3

I was also facing the same issue while doing the same here is how i solved this:

css changes:

.wjcGrid .wj-colheaders   .wj-header {
    text-overflow: initial;
}

html changes:

 <wj-flex-grid  #flex 
    [itemsSource]="data" 
    [isReadOnly]="true" 
    [headersVisibility]="'Column'" 
    [selectionMode]="'Row'" 
    (loadedRows)="onGridLoaded($event)" 
    [autoSizeMode] = "'Headers'">
 </wj-flex-grid>

In component:

  onGridLoaded(){
        var self = this;
        setTimeout(function() {
             self.flex.autoSizeColumns();
        },300);
  }

you can remove setTimeout from the above method,as i have used because i had some rendering issue when i was loading same grid multiple times.

Hope it solves your issue.

  • Yeah, this works for me. In my version on wijmo, it was not supporting (loadedRows) so used auto size after assigning value – srashtisj Dec 22 '16 at 02:30
0

You can use text-overflow property and set it to ellipsis

Refer w3school

Sudheer KB
  • 1,596
  • 14
  • 28
0

You should use AutoSize property of Flexgrid. Check this thread: http://wijmo.com/topic/auto-adjust-height-for-flexgrid-column-headers/

AshishJindal
  • 176
  • 2
  • 10
0

I am working on HTML5/Angular JS 4 application using TypeScript. I need to wrap my column header. I simply did like below and it worked.

<wj-flex-grid #studentsWjFlexGrid [itemsSource]="studentsPerformanceData" style=" height:100%; width:100%">
    <wj-flex-grid-column binding="longDescription" [width]="100" [wordWrap]="true">
        <ng-template wjFlexGridCellTemplate cellType="ColumnHeader">
            <span style="word-wrap: break-word;">Long Description Goes here</span>
        </ng-template>
    </wj-flex-grid-column>
</wj-flex-grid>
Ziggler
  • 3,361
  • 3
  • 43
  • 61