ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
How to get Grid row model when having the key, using js
Title:
B
I
{code}
?
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
Save Changes
Cancel
RayBen
asked at 09 Sep 2024
Answers
B
I
{code}
?
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]); }
Save Changes
Cancel
Omu
answered at 09 Sep 2024
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK