skelta.grid.getDataSource()
- Last UpdatedJun 25, 2024
- 1 minute read
Use getDataSource() method in On Data Bound event of a Data Grid to get the name of the data source. Here the data source is the lookup consumed in the grid configuration.
Syntax
var dataSource = skelta.grid.getDataSource(e.sender);
Parameters
|
Parameter |
Description |
|---|---|
|
sender |
sender from the event parameter (e) in On Data Bound script. |
Return Value
This method returns a string value.
Example
// This prints the lookup name in the browser console.
var dataSource = skelta.grid.getDataSource(e.sender);
console.log(dataSource);