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

Problem with radwindows confirm and alert

1 Answer 113 Views
Window
This is a migrated thread and some comments may be shown as answers.
Miguel
Top achievements
Rank 1
Miguel asked on 28 Sep 2012, 04:30 PM
Hi, I have a problem when I try to use the radwindow (confirm or alert) with javascript, please help me!

Here is my code:

function ShowOverCash() {
  var strOver = "";
  strOver = $("#<%=hdMsg.ClientID%>").attr("innerHTML");
  //alert(strOver);
  //var oConfirm = radconfirm(strSobreGiro, "aprSobreGiro", 700, 350, null, "La solicitud presenta Sobregiro");
 
  var oConfirm = radalert("hello", "aprSobreGiro");
}
 
function aprSobreGiro(arg) { 
  alert(arg);
  return false;
}

I have commented thr original code for test, but doesn't work.

when the program call the function ShowOverCash, fire a Error like this:
 Microsoft JScript runtime Error: canĀ“t get the property value from '_visibilityMode': the object is undefined or null 

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 01 Oct 2012, 08:17 AM
Hi Miguel,

Have you examined the following help article that shows how to work with the RadConfirm dailog: http://www.telerik.com/help/aspnet-ajax/window-dialogs-confirm.html? You will notice that the callback function is a function object and not a string. I am attaching here a simple page that shows the correct approach. Also, since I am using a label I changed the jQuery call, but you should make sure to pass a valid string as the first argument.


Kind regards,
Marin Bratanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Window
Asked by
Miguel
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or