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

4 posts, 0 answers
  1. karunakar
    karunakar avatar
    5 posts
    Member since:
    Jun 2014

    Posted 25 Jun 2014 Link to this post

    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.
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 25 Jun 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. karunakar
    karunakar avatar
    5 posts
    Member since:
    Jun 2014

    Posted 26 Jun 2014 in reply to Marin Bratanov Link to this post

    Thank you. It is working fine for us.
  5. karunakar
    karunakar avatar
    5 posts
    Member since:
    Jun 2014

    Posted 26 Jun 2014 in reply to karunakar Link to this post

    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.
Back to Top