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

JS Error using RadConfim

7 Answers 71 Views
Window
This is a migrated thread and some comments may be shown as answers.
Stuart Hemming
Top achievements
Rank 2
Stuart Hemming asked on 08 Oct 2010, 09:00 AM
I'm code that we have had on production servers since Q1 2009 we are now getting a JavaScript error when using RadConfirm.

As an example, I have a page with a grid on it that uses RadToolBar are the command item.

Clicking on the 'delete' button fires the ToolbarClicking event, this, in turn calls RadConfirm. A positive response from RadConfirm results in an AjaxRequest. Oddly, the JS error isn't reported 'til the system is part way through processing the Server-side code resulting from the AjaxRequest.

I can confirm that this is happening not just on one page but all pages using RadConfirm in this way. Sadly that's every page where there is something that can be deleted!

I'm going to see if I can find a workaround for this, but if I can't then this one error has effectively rendered SP2 U/S!

-- 
Stuart

7 Answers, 1 is accepted

Sort by
0
Stuart Hemming
Top achievements
Rank 2
answered on 08 Oct 2010, 12:08 PM
The cause of the problem seems to be the Animation property on the RadWindowManager control. If I have it set (or at least, if I have it set to "Fade" which is my default value; I haven't tested the rest of them) then I get the error. Removing the Animation attribute makes the problem go away.

-- 
Stuart
0
Stuart Hemming
Top achievements
Rank 2
answered on 08 Oct 2010, 12:09 PM
I've just tested a couple of the other Animation settings and they all produce the error.

-- 
Stuart
0
Stuart Hemming
Top achievements
Rank 2
answered on 08 Oct 2010, 12:16 PM
I've logged support ticket #355601 complete with a page demonstrating the problem

-- 
Stuart
0
Stuart Hemming
Top achievements
Rank 2
answered on 08 Oct 2010, 12:58 PM
Blast!

Although this accounts for one cause of the error, it's not a full solution/workaround. My production code is still failing even though I've got these changes in place.

-- 
Stuart
0
Stuart Hemming
Top achievements
Rank 2
answered on 08 Oct 2010, 02:49 PM
For anyone taking an interest in this. I've found the problem in my production code.

It turns out that some developers had decided to include some or all the attributes set in the skin file (which is what I edited to remove the Animation property for the app) directly in the page.

Editing the page to remove anything and everything that should be managed in the .skin file seems to address the issue!


The upshot is that you need to make sure that NONE of your pages/controls (including masterpages) include the Animation property on any RadWindowManagers that they define.

-- 
Stuart
-- 
Stuart
0
Accepted
Georgi Tunev
Telerik team
answered on 11 Oct 2010, 11:17 AM
Hi Stuart,

I just want to notify you that we confirmed the problem and we already solved it in our internal builds. The fix will be present with the Q3 BETA next week.

Sincerely yours,
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
0
Stuart Hemming
Top achievements
Rank 2
answered on 11 Oct 2010, 11:19 AM
Georgi,

thanks for the update.

-- 
Stuart
Tags
Window
Asked by
Stuart Hemming
Top achievements
Rank 2
Answers by
Stuart Hemming
Top achievements
Rank 2
Georgi Tunev
Telerik team
Share this question
or