Angular 2 ng-template via code

Originally Posted 31 August 2017, 9:11 am EST

  • Originally Posted 31 August 2017, 9:11 am EST

    How can achive this behavior via code and not in the html.








    I don't have the columns defined in the html. I want to add the CellEdit type but the wjGrid.CellType.CellEdit doesn't exist.
    I want to create an editor for a Date (set a Calendar Picker), a Input Number, and a List.
  • Marked as Answer

    Reply

    Hi Cesar,
    The template can not be applied to FlexGrid through code. For this, you need to use itemFormatter or formatItem for creating custom editor. For your reference, please refer to the attached demo sample for the same.

    Thanks,
    Manish Kumar Gupta
    2017/09/FlexGrid_customEditor_TS.zip
  • Reply

    Thanks for the replay
Need extra support?

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

Learn More

Forum Channels