datatable delete callback

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 3 ans
I want to call a function after delete button done its job and redraw the grid on nopcommerce 4.3 datatable in my plugin, how can I do it?
I use this code on my datatable for rendering delete button :
                        
UrlDelete = new DataUrl("PriceDelete", "Priceb2b",null),
Il y a 3 ans
call a JavaScript function, or something on the backend?
Il y a 3 ans
New York wrote:
call a JavaScript function, or something on the backend?


Javascript function
Il y a 3 ans
Any Idea?
Help me pls
Il y a 3 ans
I solved my problem by replacing Table.cshtml in my plugin and do what I want in delete function.
But, anyway, I think there is a better way.
Il y a 3 ans
A 'clean' way to have custom JavaScript in a .cshtml file is to use a Widget (zone) and have your plugin handle it.
Il y a 3 ans
New York wrote:
A 'clean' way to have custom JavaScript in a .cshtml file is to use a Widget (zone) and have your plugin handle it.


I use widget to add new tab to edit product page, but I can't find any delete callback from datatable to call a custom js function
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.