Question
I want to know the cost of using IgxTreeGrid everywhere instead of IgxGrid, And why not you just add a flag to IgxGrid so the tree behaviour is enabled?
I've found only three differences between both implementations:
groupingExpressions which is implemented as a pipe for IgxTreeGrid, but for IgxGrid is implemented as an attribute.
dataPreLoad event exists at IgxGrid but is not present at IgxTreeGrid (Is not clear to me why)
childDataKey attribute is required for IgxTreeGrid to work, it doesn't matter if it's value is undefined
I see no problem with changing all my implementations from IgxGrid to IgxTreeGrid, my only concern is that there must be a really good reason for you to keep them as a separated components.
What I mean is that an IgxTreeGrid implementation seems to have all the features of IgxGrid but with a plus of being able to add sublevels. So, I'm wondering; is there's something wrong if I just forget everything about IgxGrid and just start using IgxTreeGrid everywhere?
The only obvious thing I can come off is that IgxTreeGrid is slightly heavier than IgxGrid, but that doesn't seems to be enough reason for the separation (I might be wrong and one might be way heavier than the other).
- igniteui-angular version: 12.1.8
- browser: Chrome 95.0.4638.69 (Build oficial) (64 bits)
Question
I want to know the cost of using
IgxTreeGrideverywhere instead ofIgxGrid, And why not you just add a flag toIgxGridso the tree behaviour is enabled?I've found only three differences between both implementations:
groupingExpressionswhich is implemented as a pipe forIgxTreeGrid, but forIgxGridis implemented as an attribute.dataPreLoadevent exists atIgxGridbut is not present atIgxTreeGrid(Is not clear to me why)childDataKeyattribute is required forIgxTreeGridto work, it doesn't matter if it's value isundefinedI see no problem with changing all my implementations from
IgxGridtoIgxTreeGrid, my only concern is that there must be a really good reason for you to keep them as a separated components.What I mean is that an
IgxTreeGridimplementation seems to have all the features ofIgxGridbut with a plus of being able to add sublevels. So, I'm wondering; is there's something wrong if I just forget everything aboutIgxGridand just start usingIgxTreeGrideverywhere?The only obvious thing I can come off is that
IgxTreeGridis slightly heavier thanIgxGrid, but that doesn't seems to be enough reason for the separation (I might be wrong and one might be way heavier than the other).