Need help with wijmo grid customization

Posted by: nilesh_nichal on 17 May 2020, 4:18 pm EST

  • Posted 17 May 2020, 4:18 pm EST


    We want to make a grid which has a fixed column and some dynamic columns as well, whose headers need to be merged(count not fixed). Can you let us know how we can achieve it using wijmo flex grid.

    Attaching the image for better understanding.
  • Replied 18 May 2020, 3:47 pm EST

    Hi Nilesh,

    You may set the autoGenerateColumns to true and add just the fixed columns in the html template of FlexGrid. The other dynamic columns will be automatically generated. Now, you just need to set the allowMerging property of the FlexGrid to wijmo.grid.AllowMerging.ColumnHeaders and the allowMerging property of the header row to true. Also, you may handle the formatItem event to center-align the merged header.

    Please refer to the sample link below:

  • Replied 19 May 2020, 3:43 am EST

    The json structure for our grid is quite different. Attaching the sample json.
    As given in json, 'dynamic_data' array length may vary. Also, we need the action button in every column, which will pass complete column data to function.
    Can you provide us with a sample grid covering this scenario.
  • Replied 19 May 2020, 3:49 am EST


  • Marked as Answer

    Replied 19 May 2020, 7:24 pm EST

    Hi Nilesh,

    Please refer to the sample below which customizes the grid as per your requirements:

    I have added comments in the sample itself for explanation.

  • Replied 19 May 2020, 11:05 pm EST

    Thanks Ashwin for your help,
    It is working as expected.
Need extra support?

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

Learn More

Forum Channels