SMART datagrid v.1 > Classes > GridBase
Fill the value in LookupSource corresponding to sourceId.
LookupTree is the implemented LookupSource currently, and the items as much as levels number + 1 of lookup tree should exist in each row being transferred to rows.
$('#fillData').click(function () {
// "customers" is the id of lookup tree.
// In each row of rows, there should be the items as much as the number of levels + 1 of lookup tree.
// 0 ~ levels - 1 will be used as key values, and the item of levels location will be used as a value.
// In the example below, levels, that is the number of key is 2.
grdMain.fillLookupRows("customers",
// rows
[
["Google", 5, "GOOG_5"], // row. "Google" and 5 are keys, and "GOOG_5" is a value.
["Microsoft", 4, "MSFT_4"],
["Apple", 3, "AAPL_3"],
...
]
);
});