How to expand specific column by default?
Hi,
instead of doing in this way
'rows': [
{
'tuple':[
'Category.Food'
]
},
{
'tuple':[
'Category.Food'
]
}
]
Is there any solution to expand all sub-category under ‘Category’ by default?
Thank you 🙂
3 answers
Hi Elisa!
Thank you for your question.
It’s possible to expand all the hierarchies on the grid by setting the expandAll
property to true
. Please refer to our documentation to learn more about the structure of an Expands Object of a Slice object.Â
Hope this demo will be helpful for you.
Best regards,
WebDataRocks Team
Thanks for your answer.
However, what I mean was that if I want to expand three columns and left one column to be hidden by default, would that be possible?Â
Hello Elisa,
In case you want to expandAll
except some specific row, you can do this.
Please refer to the updated sample: https://codepen.io/webdatarocks/pen/rEVRQq
Also, you can always experiment by configuring report via UI and then saving JSON using Save
button.
Hope it helps.
Regards,
WebDataRocks Team