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

RadCombobox Set value using Javascript from Popup to Parent Page

6 Answers 136 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Deepa
Top achievements
Rank 1
Deepa asked on 02 Dec 2010, 06:27 PM
Hello,
I am trying to set the value in the RAD Combo Box. My situation is: I have one Page from which I popup other page..And before I close the popup, I set the value of the Combobox in the Parent Page using Javascript Function.
I know I can set the Combobox value if I access it like, 
var combo = $find("<%= RadComboBox1.ClientID %>");   
in the javascript function.
But I can not access it like that bcz it is on another page..
I have only one option to access it through,

var

 

 

objstate = document.getElementById('maincontent_RadcomboBox');

 


So I can only access using its PageRendered name and not by the actual name...
The ASP DROPDOWN works fine if I access it like this.
Plz suggest any solution ASAP...

Thasnk,
Deepa

6 Answers, 1 is accepted

Sort by
0
Deepa
Top achievements
Rank 1
answered on 06 Dec 2010, 04:59 PM
Please Anyone Reply..
0
Dimitar Terziev
Telerik team
answered on 08 Dec 2010, 09:58 AM
Hello Deepa,

Using this approach
var objstate = document.getElementById('maincontent_RadcomboBox');

will get you the DOM element of the combobox, not its client-side object, so you cannot access its functions like this. I've made a small project using RadWindow to show you how you could access a function on the parent page through a page in a RadWindow.

Regards,
Dimitar Terziev
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Deepa
Top achievements
Rank 1
answered on 08 Dec 2010, 07:29 PM
Thanks for the reply.
But I can not open the file..Can you plz upload using .zip EXT.
Thanks,
Deepa
0
Deepa
Top achievements
Rank 1
answered on 09 Dec 2010, 04:51 PM
I have also trouble with setting value of the Dropdown in the RADGRID. The Dropdown is TELERIK:GRIDDROPDOWNCOLUMN in the RADGRID.
Please reply me asap.

Thanks,
Deepa
0
Dimitar Terziev
Telerik team
answered on 13 Dec 2010, 08:56 AM
Hello Deepa,

Sending the project in zip format. About the problem with the grid , please send more information in order to reproduce the problem.

Regards,
Dimitar Terziev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Deepa
Top achievements
Rank 1
answered on 14 Dec 2010, 07:34 PM
Thanks for sending this project. I really appreciate. It really helped.
Tags
ComboBox
Asked by
Deepa
Top achievements
Rank 1
Answers by
Deepa
Top achievements
Rank 1
Dimitar Terziev
Telerik team
Share this question
or