ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Show Message after Delete for all grid
Title:
B
I
{code}
?
Hello I want to show a message after delete in Grid and i want to use this method in _Layout.cshtml( C#,MVC ) for all Grid.For edit i have used this sample $(document).on('aweinlinesave', function (sep, r) { ... }); but i cannot find for delete. Do you have any Idea ? Thanks a lot Saeed
Save Changes
Cancel
TT Tom
asked at 06 Jul 2018
Answers
B
I
{code}
?
I presume you're looking at the grid inline editing demo where `InitDeletePopupForGrid` is called, in there you can see `.Success("utils.itemDeleted('" + gridId + "')")`, and if you look in `utils.js` `itemDeleted` you'll find `row.trigger('itemdelete');`, so you can bind to `itemdelete` event; In our demo this event is used for signalR to sync the deletion of items. other ways would be to call your own js function on `Success`
Save Changes
Cancel
Omu
answered at 06 Jul 2018
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