ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
get the row model Id on Grid with Inline editing Save Event
Title:
B
I
{code}
?
I am trying to get my ID while save event rises but cant get the value. $('#OpenPrinterItems').on('aweinlinesave', '.awe-row', 'data-k', function (e) { console.log("BtnSavePressed " + e.data.valueOf.toString()); // Returns "data-k" console.log("e.PrinterID"); // Returns "undefined" });
Save Changes
Cancel
c4
asked at 07 Mar 2019
Answers
B
I
{code}
?
You can get the row model by calling `utils.model($(rowObj))` : $('#DinnersGrid2').on('aweinlinesave', '.awe-row', function(e){ console.log(utils.model($(this))); });
Save Changes
Cancel
Omu
answered at 07 Mar 2019
aaahhhhhh Okay got it, thank you, Sir. But the Save event rises only when the value is Changed, right? Is there a possibilty to catch an event when Save button is pushed regardless if the value is changed?
at 07 Mar 2019
c4
for save button click you could do `$('#gridid').on('click', '.o-glsvb', function(){ var row = $(this).closest('.awe-row'); });`
at 07 Mar 2019
Omu
Thanks alot Sir!
at 07 Mar 2019
c4
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