SMART datagrid v1.4 > Classes > GridBase
id로 지정한 LookupSource에 keys로 지정한 값이 존재하면 true를 리턴한다.
grid.addLookupSource({
id: "prodCustomers",
levels: 2,
keys: [
['PR_001', 'AAPL'],
['PR_002', 'MSFT']
],
values: [
"PR_001_Apple",
"PR_002_Microsoft"
]
});
$('#lookupClear').click(function () {
if (grid.existsLookupData("prodCustomers", ['PR_001', 'AAPL'])) {
grid.clearLookupData("prodCustomers");
}
});