RadWindow in SharePoint closes automatically

3 posts, 1 answers
  1. Andreas Dahlén
    Andreas Dahlén avatar
    16 posts
    Member since:
    Mar 2010

    Posted 29 Apr 2010 Link to this post

    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. Answer
    Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 29 Apr 2010 Link to this post

    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.
  3. Andreas Dahlén
    Andreas Dahlén avatar
    16 posts
    Member since:
    Mar 2010

    Posted 29 Apr 2010 Link to this post

    Thank you!

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

    Now it works as expected.
Back to Top