ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
dblclick row in grid to open the edit popup
Title:
B
I
{code}
?
Hi, I want the edit window to open when I double-click the row. I added a toolbar to the page. The editing operation is done via the out-of-row button
Save Changes
Cancel
Arash Ansari
asked at 21 Feb 2021
Answers
B
I
{code}
?
if you look at the demo code for the html helper that generates the grid edit button, you'll see that it generates a call like this: `awe.open('editDinnersGrid', {params:{"id":"385"}}, event)` so you need to call the same method, it could be like this: var g = $('#DinnersGrid'); var api = g.data('api'); g.on('dblclick', '.awe-row', function(e){ var rmodel = api.model($(this)); console.log(rmodel); awe.open('editDinnersGrid', {params:{"id": rmodel.Id }}, e); // instead of .Id it could be something else in your case, have a look the console log output from above });
Save Changes
Cancel
Omu
answered at 21 Feb 2021
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