Popup radwindow doesn't permenantly stay up (disappears)

5 posts, 0 answers
  1. G S S
    G S S avatar
    85 posts
    Member since:
    Mar 2008

    Posted 29 Apr 2009 Link to this post

    I am using radwindow to display a popup window, showing content, on the click of an asp button.

    The problem is, the window loads, appears and disappears less than second later. It is too quick for me to even see what content comes up/how it looks.

    Here is my code:

      <script type="text/javascript">
    function openWin(string Url) {
    var oWnd = radopen(Url, "RadWindow4");
    oWnd.moveTo(50, 200);

    </script>

    Called from:

      <asp:Button ID="Button5" CssClass="btn" runat="server" Text="Labs" OnClientClick="openWin('Labs.aspx');" />

    Any idea what is wrong?

  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 29 Apr 2009 Link to this post

    Hi G,
    The asp:button control will initiate a postback once it is clicked - you need to cancel it in order to keep the dynamically created RadWindow on the page.
    e.g:

    <asp:Button ID="Button5" CssClass="btn" runat="server"
    Text="Labs" OnClientClick="openWin('Labs.aspx'); return false;" /> 


    Best wishes,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. G S S
    G S S avatar
    85 posts
    Member since:
    Mar 2008

    Posted 30 Apr 2009 Link to this post

    Thanks for that!

    The only other issue is when I load the window from clicking a button, the buttons/icons in the window don't appear right. See below:

    [URL=http://img27.imageshack.us/my.php?image=telerikissue.jpg][IMG]http://img27.imageshack.us/img27/8596/telerikissue.th.jpg[/IMG][/URL]

  5. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 01 May 2009 Link to this post

    Hello G,

    Judging from the screenshot, I would say that the problem is due to global styles that you are using on the same page - using global styles with third party controls is not recommended as they interfere with their appearance just like in your case.
    Please check and edit your CSS. If you still experience problems after that, I would like to ask you to open a support ticket and send me a small sample project (make sure it can be run locally) where I could examine your setup more closely.


    Greetings,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. G S S
    G S S avatar
    85 posts
    Member since:
    Mar 2008

    Posted 02 May 2009 Link to this post

    Thanks, solved the problem. I deleted some redundant CSS styles in my stylesheet.

    As I am using a trial, the support options aren't open to me.

    Thanks

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017