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

Rad Window Opens for only 1-2 sec

1 Answer 55 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Raj
Top achievements
Rank 1
Raj asked on 21 Sep 2010, 06:23 AM
Hello,

I have placed a rad window control on one of the pages. However, the Rad window is opening for only a fraction of second and closing automatically. 

Here's the code:

Master Page.aspx:
<telerik:RadWindowManager ID="Singleton" Skin="Outlook" Width="300" Height="300"
        runat="server" ShowContentDuringLoad="false" Modal="true" Behaviors="Default"
    AutoSize="true" Top="-200" VisibleTitlebar="true" VisibleStatusbar="false" ReloadOnShow="true">        
  </telerik:RadWindowManager>

Content Page.aspx:
<a href="#" runat="server" id="ancPageName">      
<asp:ImageButton ID="Image1" height="110" runat="server" width="130" />
</a>

Content Page.aspx.cs
Image1.ImageUrl = "~/imagelink.aspx";
ancPageName.Attributes.Add("onclick", "var wnd=window.radopen('
~/imagelink.aspx
', null);");

Would really appreciate if somebody could let me know as to what I am doing wrong.

Thanks,
Raj
          



1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 22 Sep 2010, 12:40 PM
Hi Raj,

You are not canceling the postback.

ancPageName.Attributes.Add("onclick", "var wnd=window.radopen('~/imagelink.aspx', null); return false;");

Best wishes,
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
Tags
General Discussions
Asked by
Raj
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or