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
280
unable to bind nested grid to data
posted

i have a bug where i can bind the data to the grid on the first level and the second level, but the third level takes the data of the second level

http://jsfiddle.net/w4ehc9r4/

Can you please help me?

Parents
  • 17590
    Offline posted

    Hello Ghawi,

    Thank you for posting in our community and for your provided sample.

    After I investigated this matter further I determined that the reason for this behavior is in your columnLayouts definition. The third layout should be defined as an option to the second one however in your sample they are both defined as an options to the parent layout. I moved the third layout as an option of the second and your sample is working as expected:

            columnLayouts: [{
                key: "level1list",
                responseDataKey: "Data",
                autoGenerateColumns: false,
                primaryKey: "ID",
                columns: [{
                    headerText: "ID",
                    dataType: "number",
                    key: "ID"
                }, {
                    headerText: "fullname should be level 1",
                    dataType: "text",
                    key: "FullName"
                }],
                columnLayouts: [{
                    key: "level2list",
                    responseDataKey: "Data",
                    autoGenerateColumns: false,
                    autofitLastColumn: true,
                    columns: [{
                        headerText: "full name should be level 2",
                        dataType: "text",
                        key: "FullName"
                    }]
                }]
            }]

    Your modified sample could be found at : http://jsfiddle.net/w4ehc9r4/1/

    I believe you will find the following article from our documentation helpful:

    Columns and Layouts(igHierarchicalGrid)

    Please let me know if you need any further assistance with this matter.

Reply Children