Hello!My scenario is the following:
Example: I'm returning from the back end a list of CARS, where each CAR contains DOORS and SEATS collections; In the main (parent) grid I'm showing cars with their properties. In the first child grid I'm showing doors and in the second child grid - seats of the selected car.
My question is how to put a title above each child table, so the user who is looking at the tables will clearly recognize which one is for Doors and which is for Seats.
Best regards,AngelKostadinov
Hello Angel,
Thank you for using Infragistics forums!
I think the caption option is what you are looking for. Please, refer to the API documentation for more information.
In the columnLayouts definition you are essentially providing options for igGrid widgets to initialize with when a row is expanded. So the caption should be set for each of the columnLayouts you want to have title for.
I hope this helps! Please, let me know if you have any other questions or concerns!
Best regards,
Stamen Stoychev
Hello Stamen,Thank you for your immediate response!
I tried 'caption' option but did not succeed to display the title
of the table. We are using igGrid through several wrapper layers
and the cause of not displaying the title is not in your code.
Sins your answer is absolutely accurate and refers exactly to what
I was asking for, it should be marked as "answered".
AngelKostadinov
{
caption: 'Seats',
exporting: false,
filtering: false,
deleting: false,
sorting: false,
editMode: 'row',
columns: [.........]
..................
}
If you could share a small sample I could try pinpointing the exact cause of the caption not displaying properly. There could be a workaround that would solve the issue in your scenario.