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

[Solved] Dynamic RAD Rler From Code

3 Answers 127 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bharathwajan Venkatanarayanan
Top achievements
Rank 1
Bharathwajan Venkatanarayanan asked on 07 Oct 2009, 01:07 PM
Hi

We dynamically call rad alert from c# code.

I could see the popup on click of ok or even the close button i could redirect to some page.

But if i press enter button in the keyboard the close event is not firing.

Any sugessions will be of great help.

Script

 

<script type="text/javascript">

 

 

function ShowAlert()

 

{

 

var oWnd = radalert('Password Updated Successfully!', 330, 110,'Message');

 

oWnd.add_close(closingFn);

}

 

 

function closingFn()

 

{

window.location =

"Logout.aspx";

 

}

 

</script>

 


C#

string

 

scriptstring = "ShowAlert();";

 

 

ScriptManager.RegisterStartupScript(this, this.GetType(), "radalert", scriptstring, true);

 



Regards

Bharath.

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 09 Oct 2009, 12:46 PM
Hi Bharath,

I tried to reproduce the problem locally but everything is working as expected on my side (see attached video).
Please open a support ticket and send us a sample project that reproduces this behavior so we could check it.

Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Bharathwajan Venkatanarayanan
Top achievements
Rank 1
answered on 22 Oct 2009, 08:07 AM
Hi,

It is not working for IE6 whereas for higher versions it is working fine.
could you please  try it in your end and please suggest how to make it work for IE6.

Thanks,
Bharath
0
Georgi Tunev
Telerik team
answered on 22 Oct 2009, 12:19 PM
Hello again Bharath,

Thank you for the additional details - I was able to reproduce the problem. You can fix it by adding a small timeout in your closing function - a timeout of 0ms should do the trick as well (increase the value if needed):
function closingFn()
{
    window.setTimeout(function()
    {
        window.location.href = "Logout.aspx";
    }, 0);
}



Greetings,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Bharathwajan Venkatanarayanan
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Bharathwajan Venkatanarayanan
Top achievements
Rank 1
Share this question
or