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

Unable to get value of the property 'open': object is null or undefined

3 Answers 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
karunakar
Top achievements
Rank 1
karunakar asked on 25 Jun 2014, 02:04 PM
Hi

We have got error in IE9 and Chrome. we need to show the radwindow on pageload.

We have written radwindow code in page onload event.

Error: Unable to get value of the property 'open': object is null or undefined

Please see the below code which we have written.

​ var openDailog = window.radopen('Warning.aspx', 'List');
openDailog.center();
openDailog.setSize(690, 460); //set as per req
openDailog.set_modal(true);
openDailog.set_behaviors(4 + 32);
return false;

Regards,
Venu.

3 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 25 Jun 2014, 02:51 PM

Hi Venu,

You need to execute this code when the script controls are created, i.e., in the Sys.Application.Load event: http://msdn.microsoft.com/en-us/library/bb383829.aspx. The pageLoad function is a shortcut to that. So, for example:

function showDialog() {
 var openDailog = window.radopen('Warning.aspx', 'List');
 openDailog.center();
 openDailog.setSize(690, 460); //set as per req
 openDailog.set_modal(true);
 openDailog.set_behaviors(4 + 32);
 return false;
 Sys.Application.remove_load(showDialog);
}
Sys.Application.add_load(showDialog);



Regards,

Marin Bratanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
karunakar
Top achievements
Rank 1
answered on 27 Jun 2014, 04:22 AM
Thank you. It is working fine for us.
0
karunakar
Top achievements
Rank 1
answered on 27 Jun 2014, 04:35 AM
Hi
Thanks for you people assistance, this solution is working fine.
We are heading several issues while implementing RadWindow popup.

All we have solved slowly, but we were struck up with another major problem since many days, please find a solution for the following link.
http://www.telerik.com/forums/stop-autorefresh-when-radwindow-opens

Thanks in Advance.

Regards
Venu.
Tags
General Discussions
Asked by
karunakar
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
karunakar
Top achievements
Rank 1
Share this question
or