SMART datagrid v.1 > Classes > GridBase
If there is a value specified by keys existing in LookupSource specified by id, it will return 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");
}
});