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

Select all issue on closing the RADwindow

4 Answers 58 Views
Window
This is a migrated thread and some comments may be shown as answers.
Neo
Top achievements
Rank 1
Neo asked on 06 Oct 2010, 02:29 PM
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.

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 06 Oct 2010, 02:39 PM
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
0
Neo
Top achievements
Rank 1
answered on 06 Oct 2010, 03:02 PM
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;
}

0
Georgi Tunev
Telerik team
answered on 08 Oct 2010, 11:51 AM
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
0
Neo
Top achievements
Rank 1
answered on 13 Oct 2010, 03:57 PM
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.
Tags
Window
Asked by
Neo
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Neo
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or