accesing rad controls within a rad window

2 posts, 0 answers
  1. alan
    alan avatar
    8 posts
    Member since:
    Jan 2011

    Posted 27 Mar 2011 Link to this post

    Hello

    I'm trying to write scripts that automate UI actions on a page that's loaded into a different frame. In other words the page with the automation script is loaded into one frame and the page that's being automated is loaded into another frame on the same page(I named the frame rightFrame).
    I've been able to do this with the rad controls with the following code:
    var control = (parent.rightFrame)[0].$find(ID);

    However when i do the same thing for a control that's inside a rad window that popped up on the page i'm getting a null value returned. The issue is not waiting for the window to load. I've set ample timeout for that and it still doesn't work. Any help would be greatly appreciated.

    Thanks
    Alan
  2. Misho
    Admin
    Misho avatar
    241 posts

    Posted 30 Mar 2011 Link to this post

    Hello Alan,

        The issue you describe might be related either to defining a proper timeout before getting the object reference inside the RadWindow or to the code you’re using to get the object reference.

    Could you please provide the following additional information in order to get a better understanding on your setup?

        
    1.     How is your RadWindow configured – do you use a ContentTemplate or you load an external page through its url? This information is needed because in those two scenarios referencing the controls inside the RadWindow is done in a different manner.

        2.     Could you please share the code snippet which shows how you get the object reference ?

    Once we receive this, we will do our best to help.

    Kind regards,
    Misho
    the Telerik team
Back to Top