Rad Window ClientID not return the full id

4 posts, 0 answers
  1. vn
    vn avatar
    6 posts
    Member since:
    May 2008

    Posted 21 May 2008 Link to this post


    I have a RadWindow named rtbStreetAddress inside a usercontrol.  The problem I am having is the rwEditAddress.ClientID property is not returning the full client id as expected in the Page_Load or OnPreRender methods. 
    It returning "rwEditAddress" instead of "ctl00_cDefaultContent_cAddresses_cBillingAddress_rwEditAddress"
    I have a rad text box in the user control and it returning the correct client id "ctl00_cDefaultContent_cAddresses_cBillingAddress_rtbCity"

  2. Dimcho
    Dimcho avatar
    45 posts

    Posted 23 May 2008 Link to this post

    Hello Vincent,

    If you have RadWindow named rtbStreetAddress and it is not inside a RadWindowManager control, the rtbStreetAddress.ClientID will return the value you expected - YourUserControlID_ClientID.

    If you have put the window inside a RadWindowManager then rtbStreetAddress.ClientID will return only the ClientID.

    This is related to the manager control and its functionality.

    Let us know what is your exact scenario and we will do our best to help.

    Sincerely yours,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft R3 2016 release webinar banner
  4. Samaira
    Samaira avatar
    3 posts
    Member since:
    Nov 2013

    Posted 19 Nov 2013 Link to this post

    In a userControl I have a radWindow within a RadWindowManager. This usercontrol is called from a MasterPage.
    RadWindow close button functionality  is not working from masterPage. If this user control called from normal .aspx page, close button works perfectly. Below is the code used for radwindow close button

     function GetRadWindow() {
                var oWindow = null;
                if (window.radWindow) oWindow = window.radWindow;
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
                return oWindow;


            function OnClientClose(oWnd, eventArgs) {
                var oWnd = GetRadWindowManager().getWindowByName("radWindow");

  5. Samaira
    Samaira avatar
    3 posts
    Member since:
    Nov 2013

    Posted 19 Nov 2013 Link to this post

    Well i resolved it by myself. I used below JS code snippet :

     function OnClientClose(oWnd, eventArgs) {
              var wind = $find('<%=radWindowID.ClientID %>');            


    Samaira Shariff

Back to Top