Skip to content

Why IgxTreeGrid behaviour isn't a feature of IgxGrid? #10428

@luiscla27

Description

@luiscla27

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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions