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

Radwindow double click

2 Answers 60 Views
Window
This is a migrated thread and some comments may be shown as answers.
Brian Roy
Top achievements
Rank 1
Brian Roy asked on 11 Feb 2010, 09:53 PM
1. if you create a link to open a radwindow.
2. double or tripple click on the link
Problem --it sometimes opens the window with disorted dimensions (tall and skinny window or fat and short)
3. Can do it in firefox 3.5.7 I could not create it in IE


To recreate this I created a link:

<

 

asp:HyperLink ID="linkText" runat="server" Text="More Details" Style="cursor:pointer;cursor:hand"></asp:HyperLink>

I added this onclick event to link
:

linkPicture.Attributes.Add(

"onclick", "javascript:OpenPreviewWindow('" + winUrl + "');");

 


I added the following manager in the aspx page:

<

 

telerik:RadWindowManager ID="RadWindowManager1" runat="server">

 

 

<Windows>

 

 

<telerik:RadWindow ID="RadProductSelectionWindow" runat="server" Title="Select Product"

 

 

Width="830" Height="620" VisibleStatusbar="false" VisibleTitlebar="true" Modal="true"

 

 

Animation="FlyIn" ShowContentDuringLoad="false" IconUrl="/favicon.ico" KeepInScreenBounds="true"

 

 

Behaviors="Close" ClientCallBackFunction="ProductSelectionCallback">

 

 

</telerik:RadWindow>

 

 

</Windows>

 

</

 

telerik:RadWindowManager>

 

2 Answers, 1 is accepted

Sort by
0
robertw102
Top achievements
Rank 1
answered on 12 Feb 2010, 02:31 PM
Hey Brian,

What does the OpenPreviewWindow function do? If you want the HyperLink control to open the RadWindow, you just need to set the OpenerElementId property of the window. Or is the OpenPreviewWindow doing something else other than just opening the window?
0
Georgi Tunev
Telerik team
answered on 16 Feb 2010, 07:09 AM
Hello Brian,

The code that you posted looks OK - I would only recommend to cancel the postback after calling the function -
linkPicture.Attributes.Add("onclick", "javascript:OpenPreviewWindow('" + winUrl + "'); return false;");

If this doesn't help, please open a support ticket and send a small sample project that reproduces the problem so we could check it.

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
Window
Asked by
Brian Roy
Top achievements
Rank 1
Answers by
robertw102
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or