ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Is there any way to trigger nest editing click on page load?
Title:
B
I
{code}
?
Hi, to jump directly to some grid item editing i would like to use the row id as a parameter for page loading and then trigger the edit button click on a row of the grid belonging to that id - is there any way to achieve this with the grid api? Best regards M
Save Changes
Cancel
Martin Strojek
asked at 24 Nov 2016
you can trigger the edit button click on grid load (once) $('#NestDinnersGrid').one('aweload', function(){ $(this).find('.awe-row[data-k=' + key + '] .editnst').click(); });
at 24 Nov 2016
Omu
Great, thanks a lot. Unfortunately i do not get any results for the row selector, tried to select from grid top down to rows and the last item i get a result for a selector is the table.awe-table. Any ideas? Are the rows not yet loaded on that event? Is there any loaded (not load) event? If I try to get all buttons within the grid with $('#MyGrid .awe-btn').each(function () { console.log(this); }); i only get the grid reload button and some column select button.
at 24 Nov 2016
Martin Strojek
Ok, found the solution: the .one('aweload') event has an emtpy grid on trigger - if i use on('aweload') it works and the grid has all it's data. Drawback is that the event is fired multiple times but i can work a round this with some status variable.
at 24 Nov 2016
Martin Strojek
Answers
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