I have a problem with the deletecommand of the asp.net radgrid control (Telerik.Web.UI 2019.1.215.40).
This happens only in the latest release of Chrome.
I hope you can replicate this issue and eventually fix it.
Hello,
my only chance was to use the nr 3 but I had to modify the script because Chrome started working but other browsers stopped (e.g. Edge and Firefox).
I simply cut the "&& $telerik.isChrome" part. Now it works on all the browsers I tried (Chrome, Edge, Firefox and Maxthon).
I hope you can still solve the problem as soon as possible.
Thank you for your support.
Filippo
<
telerik:GridButtonColumn
...
ConfirmDialogType
=
"RadWindow"
>
<
telerik:GridButtonColumn
...
ButtonType
=
"LinkButton"
>
<script type=
"text/javascript"
>
Telerik.Web.UI.RadGrid.prototype.confirmOrg = Telerik.Web.UI.RadGrid.prototype.confirm;
Telerik.Web.UI.RadGrid.prototype.confirm =
function
(text, e, gridId, title, width, height) {
var
result =
this
.confirmOrg(text, e, gridId, title, width, height);
var
target = e.target;
if
(result && $telerik.isChrome && target.tagName ==
"A"
) {
setTimeout(
function
() {
var
name = /([
"'])(?:(?=(\\?))\2.)*?\1/.exec(target.href)[0].replace(/'/g, "
");
__doPostBack(name,
''
);
});
}
}
</script>