I have a grid in Extjs and I want to add rowExpander on a condition, The condition is:
If there is more than one record with same ID in store, then only one record will be visible in grid, but a rowExpander(plus icon) will be added with the record, And when we click on plus icon it will show all the remaining records of ID.
I want a grid like this:
| | ID | NAME | FIELD1 | FIELD2 | FIELD3 | FIELD4 | FIELD5 |
| + | 01 | ABCD | TEST01 | TEST02 | TEST03 | TEST04 | TEST05 |
| | 02 | ABCD | TEST01 | TEST02 | TEST03 | TEST04 | TEST05 |
| | 03 | ABCD | TEST01 | TEST02 | TEST03 | TEST04 | TEST05 |
| | 04 | ABCD | TEST01 | TEST02 | TEST03 | TEST04 | TEST05 |
| | 04 | ABCD | TEST01 | TEST02 | TEST03 | TEST04 | TEST05 |
| - | 04 | ABCD | TEST01 | TEST02 | TEST03 | TEST04 | TEST05 |
| | 04 | ABCD | TEST01 | TEST02 | TEST03 | TEST04 | TEST05 |
| | 04 | ABCD | TEST01 | TEST02 | TEST03 | TEST04 | TEST05 |
Please suggest a solution for this.
Thanks :)