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

accesing rad controls within a rad window

1 Answer 46 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
alan
Top achievements
Rank 1
alan asked on 28 Mar 2011, 04:02 AM
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

1 Answer, 1 is accepted

Sort by
0
Misho
Telerik team
answered on 30 Mar 2011, 03:45 PM

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
Tags
ComboBox
Asked by
alan
Top achievements
Rank 1
Answers by
Misho
Telerik team
Share this question
or