Populate a RadMaskedTextBox from a pop up window..

3 posts, 0 answers
  1. JR
    JR avatar
    7 posts
    Member since:
    Nov 2009

    Posted 07 Sep 2011 Link to this post

    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. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 07 Sep 2011 Link to this post

    Hello JR,

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

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. JR
    JR avatar
    7 posts
    Member since:
    Nov 2009

    Posted 08 Sep 2011 Link to this post

    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.
Back to Top