JS error in radwindow

2 posts, 1 answers
  1. Damian
    Damian avatar
    21 posts
    Member since:
    Mar 2013

    Posted 22 Aug 2013 Link to this post

    Hi Telerik

    I am dynamically displaying a radwindow using javascript. In the JS I am only setting the position to center but on rendering I am getting a JS error Style is null.

    var winemp  =$find("<%= RadWindowEmp.ClientID%>");
    function showemp(sender, args)
    {
         winemp.center();
         winemp.show();
    }

    showemp() is invoked on a radbutton clients click.

    Thanks
    Damian.
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 22 Aug 2013 Link to this post

    Hi Damian,

    Please have a look at the following JavaScript code I tried which works fine at my end.

    JavaScript:
    <script type="text/javascript">
        function showemp(sender, args) {
            var winemp = $find("<%= RadWindowEmp.ClientID%>");
            winemp.show();
            winemp.center();
        }
    </script>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top