Posted 5 November 2020, 4:47 am EST
Hi nivishapanwar,
Can you let us know what exactly are you referring to when you say according to UI? If the json data contains 4 keys, then 4 columns will be created. You can either hide the columns are generating them or manually provide the column layout.
flexGrid.columns.getColumn(`<column binding>`).visible = false;
Regarding issue #2, you can get the reference of the column and set its width property accordingly:
flexGrid.columns.getColumn(`<column binding>`).width = 100;
Regarding issue #3, you can hide the name by setting the header property to an empty string (make sure to add a space instead of empty string):
flexGrid.columns.getColumn(`<column binding>`).header = " ";
Let me know if you need any additional help.
Regards,
Ashwin