ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: Autoflow on October 31, 2019, 09:18:01 pm

Title: Tree grid: collapse icon for empty folders
Post by: Autoflow on October 31, 2019, 09:18:01 pm
Just stumbled about empty folders in tree grid.
Would like to indicate empty folders as those without the possibility to collapse them.

What do you think about adding a third option to treeModel.iconCollapse like this:

treeModel.iconCollapse = [First string corresponds to open state icon, 2nd string corresponds to close state icon, 3rd string for folders without children and thus not collapsable].


Title: Re: Tree grid: collapse icon for empty folders
Post by: paramvir on November 01, 2019, 03:10:30 pm
treeModel.iconCollapse or treeModel.iconFolder third string option could only be used to visually represent an empty folder.

As far as the functionality to prevent collapse / expand empty folders is concerned, beforeTreeExpand event can be used.

https://paramquery.com/pro/api#event-beforeTreeExpand
Title: Re: Tree grid: collapse icon for empty folders
Post by: Autoflow on November 01, 2019, 03:29:24 pm
Quote
treeModel.iconCollapse or treeModel.iconFolder third string option could only be used to visually represent an empty folder.

Would be glad to see this implemented.
Can i count on it in some of the next releases?