ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: bwt on December 04, 2020, 05:26:29 pm
-
hello :)
i need to know how to get tthe dataIndx for nested json to call inside of nested colModel
thanks a lot
i wish to hear near from you cause it's urgent case
-
Sorry your requirement is not clear enough.
Please elaborate with a small example if possible.
-
i have a nested object ,
let's consider this object
var obj = {
data1:"x",
data2:"y",
data3 : {
data1-1:"xx",
data1-2: {
data1-2-1:"xxx"
}
}
}
in this example we have main columns , is data1 , data2 and data3
and data3 have two column, data1-1 and data 1-2 and so on
i need to get the dataIndx for data 1-2-1 , to print the results in the column
-
https://jsfiddle.net/i3laddin/pv0ey9ju/4/ you can understand me from this array in this fiddle
i type comment for what i need
-
Your jsfiddle has only data
var data = [{
rank: 1,
data: {
company: 'Exxon Mobil'
},
revenues: '339938.0',
profits: '36130.0'
}, {
rank: 2,
data: {
company: 'Wal-Mart Stores'
},
revenues: '315654.0',
profits: '11231.0'
}, {
rank: 3,
data: {
company: 'Royal Dutch Shell'
},
revenues: '306731.0',
profits: '25311.0'
}];
What's the colModel of the grid? If you want to deduce colModel from data itself, then what it should be?
-
seems like you not understand me , i need to know how dataIndx of nested object , why need fiddle ??