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 2 months ago
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 2 months ago
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