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

question about using the telerik's static client library

1 Answer 55 Views
Window
This is a migrated thread and some comments may be shown as answers.
yao wang
Top achievements
Rank 1
yao wang asked on 23 May 2010, 06:51 AM
I posted a question before and got great help
http://www.telerik.com/community/forums/aspnet-ajax/window/how-to-get-the-current-position-of-radwindow.aspx


the method in telerik's static client library works very well
var bounds = $telerik.getBounds(oWnd.get_popupElement());

There is the way how I use this method as following.

In main page which contains the radwindowmanager, I added an radwindow "A" under the radwindowmanager. After I opened the radwindow "A", I tried to open another radwindow "B" from radwindow "A" by using the code below.

function ShowWindow() {

               var found = false;

               var allWindows = GetWindowManager().get_windows
               for (var i = 0; i < allWindows.length; i++) {

                   var oWnd = allWindows[i];

                   var bounds = $telerik.getBounds(oWnd.get_popupElement());
           
        if (oWnd._title == "B" ) {

                        found = true;

                       break;

                   }

               }

......
}

in web.config.

<location path="Telerik.Web.UI.WebResource.axd">

    <system.web>

      <authorization>

        <allow users="*" />

      </authorization>

    </system.web>

  </location>


However, recently I always got the error message as below

Message: 'window' is null or not an object

Line: 124

Char: 54

Code: 0

URI: http://srfwpc12.????.com/????/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a8f393b2b-3315-402f-b504-cd6d2db001f6%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a1c53f111-a7b9-466f-ae26-3bd14c91dc5a%3a16e4e7cd%3af7645509%3a22a6274a%3a24ee1bba%3a1e771326%3a2bef5fcc


I was wondering whether the new probelm is related with some IIS setting or other permission issue? I

Thanks a lot.

 

1 Answer, 1 is accepted

Sort by
0
yao wang
Top achievements
Rank 1
answered on 25 May 2010, 03:20 AM
I figured out the result, in the page without the radwindowmanager can not use the method. Thanks anyway
Tags
Window
Asked by
yao wang
Top achievements
Rank 1
Answers by
yao wang
Top achievements
Rank 1
Share this question
or