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

[Solved] RadWindow radAlert position

6 Answers 581 Views
Window
This is a migrated thread and some comments may be shown as answers.
don
Top achievements
Rank 1
don asked on 23 Nov 2007, 06:51 PM
I apologize for the broad nature of this question, but here is the situation I'm facing...

I'm using a RadGrid that has some links in the rows that make calls to radalert, radprompt, and radconfirm depending on the data in the row. The call in the link is similar to:

<a href=# onclick="radalert('Text here', 330, 100);return false;">Click here for alert</a>

When there's a large amount of data in the grid, and the user scrolls down the page to get to a row, and then clicks on one of those links that fires off the radConfirm, radPrompt, or radAlert:

1. In Firefox, the page resets to the top of the page and then properly shows the popup.
2. In IE, the page position stays the same, but the popup presumably shows at the top of the page. The net effect, since it is modal, is that the page basically disables and the user is not even able to scroll to the top of the page to get to the popup box.

Of course, the preferred behavior is to have the page stay in the same place (not scroll to the top) and have the popup centered.

I built a separate test application with the RadGrid and the popups and it works fine, so there's clearly something interfering with it in my much more complicated page where this happens.

It would be a nightmare to try and send you my current application, so I wanted to see if you knew of any reasons, probably from other client-side scripts, that could interfere with the RadWindow popups' ability to hold the screen position and center the popup.

In case it helps, I do attach to some JavaScript events, such as:

window.onload
window.onscroll
window.onclick
window.onkeypress
window.onbeforeunload

Could any of my other functions attached to those events cause the problem?

Thanks for your thoughts...

Don

6 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 26 Nov 2007, 01:14 PM
Hello Don,

This is a problem with the current version of RadWindow Prometheus - we apologize for that. It is already fixed in our internal builds and the fix will be available with the official update early next week.

If you need the fix earlier, please open a new support ticket and add a link to this forum post - I will send you an internal build.


Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
don
Top achievements
Rank 1
answered on 26 Nov 2007, 02:41 PM
Hi Georgi,

Thanks for the info. We'll just wait until next week for the release.

- Don
0
Mark Thomas
Top achievements
Rank 1
answered on 28 Feb 2008, 03:00 PM
I get this error with latest Prometheus build:

Microsoft JScript runtime error: Object expected

using this code:

<a href=# onclick="radalert('Text here', 330, 100);return false;">Click here for alert</a>


Regards,
Mark.
0
George
Telerik team
answered on 28 Feb 2008, 04:29 PM
Hi Mark Thomas,

Could you provide us more information about your exact setup?

Meanwhile  you can find more information in our online article here.

Kind regards,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Mark Thomas
Top achievements
Rank 1
answered on 29 Feb 2008, 08:49 AM
Hi,

I have an asp:Wizard in a RadWindow, maybe this is the problem? On one of the steps I have an asp:ListBox, which I want to open a radAlert on the onchange client-side event. But I get this error. A normal alert works fine, but this is not an option.

Unfortunately I do not have time to make a working project, as it is my last day!

Regards,

Mark Thomas

PS: look forward to working with you in my new job! :-)
0
George
Telerik team
answered on 29 Feb 2008, 02:38 PM
Hi Mark Thomas,

In regards to the performance optimization in the "Prometheus" build the functions RadAlert and RadConfirm require RadWindowManager declared on your page. Please make sure that you have RadWindowManager declared prior to the function calls on the page.

On the other hand if you are using AJAX to load the window manager it is very possible the manager to fail loading.
If you are in this case, please give a try to load without the AJAX as well.

Looking forward to contacting you in the future on your next job!

Greetings,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
don
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
don
Top achievements
Rank 1
Mark Thomas
Top achievements
Rank 1
George
Telerik team
Share this question
or