Author Topic: Grouped columns auto width and  (Read 1579 times)

IdrIngvard

  • Newbie
  • *
  • Posts: 1
    • View Profile
Grouped columns auto width and
« on: August 10, 2021, 02:45:23 pm »
Hello

I do evaluation of ParamQuery Pro to find out, whether it suitable for our product.
It looks very promising so far, but I have one issue, which I cannot deal with.
It seems, it related to column auto width, when columns are grouped. (https://paramquery.com/pro/api#option-flex).
It looks like it takes into account only data cell width and not a column header width. Could you, please,
point out, where I'm wrong?

StackBlitz: https://stackblitz.com/edit/paramquery-react-npm-treegrid-o2s5r9?file=src/App.js
Actual result is:

Expected result


And one more question. In API documentation I found option renderHead for column defintion:
https://paramquery.com/pro/api#option-column-renderHead
But I cannot get it working?


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: Grouped columns auto width and
« Reply #1 on: August 13, 2021, 05:37:43 am »
1. Column auto width doesn't work for merged cells currently.

2. column.renderHead was not released, actually an issue with doc, has been taken out from the API docs. Need more testing before release.

Please let know if you face any other issues.