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

Populate a RadMaskedTextBox from a pop up window..

2 Answers 55 Views
Input
This is a migrated thread and some comments may be shown as answers.
JR
Top achievements
Rank 1
JR asked on 07 Sep 2011, 09:28 PM
We have a form with a RadMaskedTextBox on it for phone numbers.  We also have a control on the page that allows users to "lookup" employees using a popup web form which is tied to AD.  The "lookup" form is a pop-up window which when a user selects an employee name; populates information back to the form that launched it.  However, the phone number is not being properly set in the RadMaskedTextBox.

When the popup window opens it sends the ID of the RadMaskedTextBox in the query string and attempt to use the following code to set the RadMaskedTextBox's value.

window.opener.aspnetForm.MASKEDTEXTBOX_ID.set_value('0001234567);
The issue we're encountering is similar to the one described in this thread but it doesn't seem to have an answer.

http://www.telerik.com/community/forums/aspnet-ajax/input/getting-radmaskedtextbox-client-object-on-other-page.aspx

The issue we're encountering is similar to the one described in this thread but it doesn't seem to have an answer.

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 08 Sep 2011, 04:29 AM
Hello JR,

Please take a look into the following demo which demonstrates similar functionality.
Window / Returning Values from a Dialog.

Thanks,
Princy.
0
JR
Top achievements
Rank 1
answered on 08 Sep 2011, 11:40 PM
Thanks for the quick response Pincy.

is there a method of doing this without having to use a RadWindow and relying on using arguments sent back when the window is closed?

Currently, when a user clicks on any row of the "lookup" results; the data is populated back to the opening form instantly without having to close the window.  We do this so that they can see what information is being populated back to the original form because in the "lookup" window we only display some of the values which we can automatically populate.

For example; in the "lookup" window we display the employee name, job title and phone number; but not the email address.  However, we can populate the employee's email address as well; we just don't show it.

It would save us considerable effort if we didn't have to use a RadWIndow.
Tags
Input
Asked by
JR
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
JR
Top achievements
Rank 1
Share this question
or