Select all issue on closing the RADwindow

5 posts, 0 answers
  1. Neo
    Neo avatar
    22 posts
    Member since:
    May 2005

    Posted 06 Oct 2010 Link to this post

    I have one RADwindow in my page and when ever i close it by clicking on asp .net button its showing all the items on the parent page selected. its like when you press Select All from keyboard.  Same things does not happen if i click on red close button on right top corner.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 06 Oct 2010 Link to this post

    Hello Neo,


    How are you clossing the window in the button click event? Executing the following code will close the window from the content page.

    Client code:
    function cancelAndClose()
    {
       var oWindow = GetRadWindow();
       oWindow.close();
    }
    function GetRadWindow()
    {
      var oWindow = null;
      if (window.radWindow)
         oWindow = window.radWindow;
      else if (window.frameElement.radWindow)
         oWindow = window.frameElement.radWindow;
      return oWindow;
    }

    Could you paste the code that you tried if that is different from this? Is this happening for any particular browser?


    Thanks,
    Princy
  3. Neo
    Neo avatar
    22 posts
    Member since:
    May 2005

    Posted 06 Oct 2010 Link to this post

    Below is the code i m using to close the window and  i m using it for in IE7.

    function Close(ref)
    {        
        //var oWnd = GetRadWindow();  
        //oWnd.Close();
         GetRadWindow().Close();
    }
    function GetRadWindow()
    {
        var oWindow = null;
        if (window.radWindow) oWindow = window.radWindow;//Will work in Moz in all cases, including clasic dialog
        else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;//IE (and Moz az well)
        return oWindow;
    }

  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 08 Oct 2010 Link to this post

    Hi Neo,

    Your code looks OK and I was not able to reproduce the problem with it, so I assume that the problem is somewhere else. Please open a support ticket and send me a sample project that I could examine.


    Sincerely yours,
    Georgi Tunev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Neo
    Neo avatar
    22 posts
    Member since:
    May 2005

    Posted 13 Oct 2010 Link to this post

    Hello All,

    I resolved the issue, i was having RADAjaxPanel in the popup window and as i removed the ajaxpanel the blue screen with select all was resolved. i think it was trying to find focus on any control.

    so now in RADwindow the page is posting back works fine. 
    i also have multiple raddatepicker control and tooltip manager on the page but not sure why it was happening.

    Thanks.
Back to Top