Fixed columns extension, translation not working with ngxtranslate angular

Fixed columns extension, translation not working with ngxtranslate angular

Pavithra_SPavithra_S Posts: 2Questions: 1Answers: 0
edited August 2019 in Free community support

I am using angular datatable with ngxtranslate for translating the headers like below,

    **<thead>
            <tr *ngIf="dtOptions.complexHeader" class="complex-grid-header">
                <th *ngFor="let header of dtOptions.complexHeader; let i = index" [attr.colspan]="header.colspan" [ngClass]="{'emptyHeader': !header.label}" class="complex-header-{{i}}" translate>{{header.label}}</th>
            </tr>
            <tr>
                <th *ngFor="let col of dtOptions.columns" translate>
                    {{col.title | translate}}
                </th>
            </tr>
        </thead>**

When I am adding fixed columns extension, the header is not translated.
Is there any way to do that?

Answers

  • Pavithra_SPavithra_S Posts: 2Questions: 1Answers: 0

    For the complex header in the left pane, translation working as expected, where as for the second row of header it is not working

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    Hi @Pavithra_S ,

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • GandharvaGandharva Posts: 1Questions: 0Answers: 0

    how to freeze the column in angular server side datatable

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    By freeze, do you mean with the FixedColumn extension?

    Colin

This discussion has been closed.