Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
How to set TitleName of child grid
posted

Hello!
My scenario is the following:

  • I'm using igHierarchicalGrid for displaying list of parent and child elements;
  • Not using LoadOnDemand feature, if that matters;
  • Each parent element contains 2 different types of child elements;
  • Inside 'columnLayouts' array I'm defining 2 different types of options, one for each children types;

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 

Parents
  • 5513
    Verified Answer
    Offline posted

    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

Reply Children