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

RadWindow in SharePoint closes automatically

2 Answers 54 Views
Window
This is a migrated thread and some comments may be shown as answers.
Andreas Dahlén
Top achievements
Rank 1
Andreas Dahlén asked on 29 Apr 2010, 09:33 AM
We have RadGrid inside a usercontrol.
On each item in the grid we have a image with OnClick handler set to OnImgClick.
When clicking on the image the RadWindow is opened.
When running the UserControl outside of SharePoint it works fine.
When loading the usercontrol in SHarePoint, the RadWindow is opened, but the it closes immediately.

Any ideas  on why it is closed automatically within SharePoint, but works as expected outside of SharePoint?

OnImgClick-function
    function OnImgClick(sender, args) { 
        var wnd = window.radopen("/details.aspx?" + args, null); 
    } 

Definition of RadWindowManager

<telerik:RadWindowManager ID="window" Width="900" Height="600" VisibleStatusbar="false" ShowContentDuringLoad="false" 
    Behaviors="Close, Move" runat="server" AutoSize="False" Modal="true" EnableViewState="true"
</telerik:RadWindowManager> 

2 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 29 Apr 2010, 12:32 PM
Hi Andreas,

I am not sure that I understand your setup correctly - is this an asp:image / imagebutton control or an HTML IMG one? Try canceling the postback - OnClick="OnImgClick(); return false" and if this doesn't help, please provide more details about your exact setup. It will be best to open a support ticket and to send us your code there so we could examine it more closely.

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
Andreas Dahlén
Top achievements
Rank 1
answered on 29 Apr 2010, 12:56 PM
Thank you!

OnClick="OnImgClick(); return false" did it.

Now it works as expected.
Tags
Window
Asked by
Andreas Dahlén
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Andreas Dahlén
Top achievements
Rank 1
Share this question
or