[Angular2][Grid] Export DirectiveCellFactory in typescript definitions

Posted by: xlu.untitled on 26 April 2018, 12:56 pm EST

  • Posted 26 April 2018, 12:56 pm EST

    As of Wijmo 5.20181.436 (https://www.npmjs.com/package/wijmo), Wijmo Angular2 Grid interops module does not export DirectiveCellFactory.

    Is it possible to export this class in Wijmo Angular2 module? I really wish that this class would be exported in the next minor release of Wijmo on npm.

  • Posted 26 April 2018, 7:53 pm EST

    Hi,

    If we are correct, you would like exposed directive for CellFactory class.

    If yes, we have wjFlexGridCellTemplate to add custom cell template in FlexGrid. Please refer to the following sample:

    http://demos.wijmo.com/5/angular/celltemplateintro/celltemplateintro/

    ~Manish

  • Posted 27 April 2018, 12:04 pm EST

    Thanks, but that’s not what I meant to say.

    I found that Angular cell template is not supported in WjMultiRow control at all, and there’s no document on how to create custom editor for WjMultiRow.

    When I investigate the difference between WjFlexGrid and WjMultiRow, I see WjFlexGrid has a private DirectiveCellFactory class which will instantiate Angular cell template and bind it to Wijmo FLexGrid. This class is not exposed, so I was asking if in the next release, Wijmo could expose this class, or better, provide support for custom cell template in Angular2 Multirow.

  • Posted 29 April 2018, 7:25 pm EST

    Hi,

    We have requested to add CellTemplate for MultiRow with tracking id 319846. This may be included in future release if found feasible.

    In the meantime, you may add CustomEditor for MultiRow with formatItem event help. Please refer to the attached sample for the same.

    ~Manish

    MultiRow_customEditor.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels