How to get Grid row model when having the key, using js
I have the grid id, and the row key, I need to get the grid model using javascript.
pseudo code:
var grid = $('#grid_id');
var field_value = grid.row[key].item['COMBPDID']; // something like that
RayBen
asked
at 09 Sep 2024
Answers
-
You could get the grid row model in js like this:
var grid = $('#grid_id');
var api = grid.data('api');
var rows = api.select(key);
if (rows.length) {
var model = api.model(rows[0]);
}Omuanswered at 09 Sep 2024