This is a migrated thread and some comments may be shown as answers.

[Solved] radconfirm doesn't execute postback code under IE 6

1 Answer 138 Views
Window
This is a migrated thread and some comments may be shown as answers.
Derrick
Top achievements
Rank 1
Derrick asked on 08 Nov 2007, 12:08 AM
Under the Prometheus version of radconfirm, the client-side javascript seems to have a problem.  We have a client-side button that triggers the following javascript:

radconfirm('Are you sure?', DeleteActivity, 400, 200, null, 'Delete Class/Activity');

The code that generates the DeleteActivity function on the server looks like this:

ScriptManager.RegisterClientScriptBlock(Page, typeof(String), "DeleteActivity", "function DeleteActivity(arg) { if (arg) { " + ClientScript.GetPostBackEventReference(DeleteActivityControl, "").Replace('\'', '\"') + "; }; };", true);

radconfirm executes the DeleteActivity function, but for some reason on IE 6 the postback reference doesn't post back.  On IE 7 it works fine.

Switching back to the "RadControls for ASP.NET" version of RadWindow seems to resolve the problem and it works on both IE 6 and IE 7.

Any ideas why this is happening?

1 Answer, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 08 Nov 2007, 03:37 PM
Hello Derrick,

From the provided pieces of code I tried to prepare a simple page to observe the problem. I managed to reproduce it and here is our suggestion how to solve it - add a timeout for the execution of the DeleteActivity function, for example

function testFn(arg)
    {
        window.setTimeout(function(){
        DeleteActivity(arg);
        }, 100);

    }
   
    function openConfirm()
    {
        radconfirm('Are you sure?', testFn, 400, 200, null, 'Delete Class/Activity');
    }

In case this approach does not solve your problem, please open a support ticket and send us a simple running page that reproduces the issue so we can directly work on it. I am attaching instructions on how you can open support tickets where you can attach files.

Best wishes,
Petya
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
Derrick
Top achievements
Rank 1
Answers by
Petya
Telerik team
Share this question
or