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

Popup in custom control bug???

5 Answers 61 Views
Window
This is a migrated thread and some comments may be shown as answers.
Silver
Top achievements
Rank 1
Silver asked on 23 Nov 2009, 05:48 PM
Hi
I have created an image html control and a radwindow as a popup in a custom control.  When I add my custom control to a web page the image does not open the window.
I am using Firefox 3.5.5 or IE 8.
Any solutions?
thanks

(in custom control)
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<telerik:RadWindow ID="rwGoogle" runat="server" Modal="True" NavigateUrl="http://www.google.co.uk"
   OpenerElementID="imgOpenWindow">
</telerik:RadWindow>

5 Answers, 1 is accepted

Sort by
0
Silver
Top achievements
Rank 1
answered on 23 Nov 2009, 05:49 PM
oh & this

<img id="imgOpenWindow" name="imgOpenWindow" src="~/graphics/find.gif" runat="server" SkinID="EditData" style="cursor:pointer" alt="find" />


0
Roland
Top achievements
Rank 1
answered on 23 Nov 2009, 08:31 PM
Hello,

What you can try to do:

<asp:ImageButton id="imgOpenWindow" runat="server" name="imgOpenWindow" src="~/graphics/find.gif" runat="server" SkinID="EditData" style="cursor:pointer" alt="find" OnClientClick="return false"/> 

then set OpenerElementId = "<%# imgOpenWindow.ClientId %>"

This helped me once :)
0
Georgi Tunev
Telerik team
answered on 25 Nov 2009, 01:34 PM
Hi Silver,

The OpenerElementID property expects a client ID as its value. Because you are using user control which is an iNaming container, the property must be set as Roland suggested. More information on the subject is available in the demo.

Sincerely yours,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Silver
Top achievements
Rank 1
answered on 03 Dec 2009, 11:41 AM
Hi

I have tried this out but it is not working.  No popup is shown.

It is a little strange because I only get this exact problem when I work from home (hence the delay in trying this out again). 

On my work pc the window is shown perfectly ok so and when I work from home it does not show the window.  Work pc, IE7 & XP, home pc, Windows 7 & firefox or IE8. 

I'm just wondering if I have some settings on my IE or Firefox or Windows 7 that does not allow this kind of iFrame popup???  Could that be a problem.

Any more ideas?
0
Georgi Tunev
Telerik team
answered on 03 Dec 2009, 12:21 PM
Hi Silver,

I'm afraid that at this point I cannot come up with a reason for such behavior. Basically, the OpenerElementID functionality uses the page's databinding mechanism, so browser's setting should not affect it. Of course, if you have disabled the JavaScript in the browser, the window will not open, however I don't think that this is the case.

If you have time, please send me the project in a support ticket and I will suggest you other ways to achieve the desired result.

Greetings,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Window
Asked by
Silver
Top achievements
Rank 1
Answers by
Silver
Top achievements
Rank 1
Roland
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or