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

Getting radwindow child controls id in javascript

4 Answers 259 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ramakrishna
Top achievements
Rank 1
Ramakrishna asked on 13 Jul 2010, 12:13 PM
Hi All,

I have some controls like textbox,button,combobox inside radwindow.
 I want to read those controls value using javascript.
Please help me in solving this.

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 13 Jul 2010, 12:52 PM
Hello Ramakrishnan,


If you want to access the controls from parent page, then you can try the approach - Call the function written in RadWindow page, from the parent page by getting reference to window component. You need to use the contentWindow property to reference the Content Window of the RadWindow component.

You can find more information in the following link:
Calling Functions in Windows


Thanks,
Princy.
0
Ramakrishna
Top achievements
Rank 1
answered on 13 Jul 2010, 01:00 PM
Hi Princy thanks for your quick reply.

But i have placed controls inside content template of the radwindow and i need to validate those controls using javascript function.

so for this purpose i'm trying to find those controls using $find(controlId) method ,but i couldn't succedd in doin so.

0
Wired_Nerve
Top achievements
Rank 2
answered on 26 Apr 2013, 07:24 PM
Did you find a solution?
0
Rumen
Telerik team
answered on 01 May 2013, 08:39 AM
Hi,

Try to replace the $find(controlId) method with $get(contrlId) as shown in this live demo: Return Values from a Dialog.

If you are unable to achieve the desired result, open a support ticket and provide a simple runnable project, which shows the problem.

Best regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Window
Asked by
Ramakrishna
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Ramakrishna
Top achievements
Rank 1
Wired_Nerve
Top achievements
Rank 2
Rumen
Telerik team
Share this question
or