isRowSelected
Parameters
- controlId - The id of the grid
- line - This can be either a whole line from a "myGrid.allRows" call or a single id from a record.
Example Usages
let result = brixxApi.isRowSelected("myGrid", myLine)
Used in a loop
let allRows = app.getFieldValue("myGrid.allRows");
for(let i = 0; i < allRows.length; i++){
if(brixxApi.isRowSelected("myGrid", allRows[i])){
console.log("This is selected: " + line.id);
}
}
Used with an id
let result = brixxApi.isRowSelected("myGrid", 123); //Checks if the line with the id 123 is selected.