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 data on row click event ?
Title:
B
I
{code}
?
I want to make a function when Grid Row Click I want to get the current Row Data to do some work, but I don't want to close the Grid can be achieved?
Save Changes
Cancel
RayBen
asked at 03 May 2020
Answers
B
I
{code}
?
to get the grid row model ( row data ) you could do this: $('#Grid1').on('click', '.awe-row', function(e){ var rowModel = $('#Grid1').data('api').model($(this)); console.log(rowModel); });
Save Changes
Cancel
Omu
answered at 03 May 2020
Thanks It's awesome. In this way, you can complete the navigation grid on the left, and a View, Edit Form on the right. When I can control the Grid Click Row, I can reload the data into the Form on the right. Or a related Demo is better, thank you !!
at 03 May 2020
RayBen
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