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

JavaScript error when editing via DataView / DataForm webpart

5 Answers 72 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Dan Lewis
Top achievements
Rank 1
Dan Lewis asked on 27 Nov 2008, 09:47 PM
Hi,

I have just installed the latest full featured MOSS editor solution, activated the list feature on my web and editing standard lists is all working fine. However, I do have a number of DataView webparts on my site that use the "Show edit item links" option from the "Editing" tab on the "Data View Properties" window in SharePoint Designer. While clicking the edit button on these sites correctly shows the RadEditor, whenever you click save or cancel, a script error is produced at the following line (taken from debuggin with VS 2008):

(Error Message: Microsoft JScript runtime error: 'null' is null or not an object)

Line:
Sys.Application.add_load(function() {var editor = $find('ctl00_m_g_a7b17821_65b3_4247_857b_aa304dd6fef4_ff2_1_ctl00_ctl00_RadTextField1');editor.add_submit(OnSubmit_ctl00_m_g_a7b17821_65b3_4247_857b_aa304dd6fef4_ff2_1_ctl00_ctl00_RadTextField1);});

I should add that when clicking save, it does actually save the field properly and cancel does nothing as you'd expect. On most client machines script debugging would be disabled so in theory the problem wouldn't be that noticeable, but I'd like to understand and prevent this from happeing if possible...

Dan.

5 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 28 Nov 2008, 01:30 PM
Hello Dan,

Please upgrade to the latest version of the control (5.3.0) and test the scenario. I believe that once you do that the issue will be gone.

If the problem persists we will be glad to help  you further.

Regards,
Stanimir
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Dan Lewis
Top achievements
Rank 1
answered on 15 Dec 2008, 04:31 PM
Hi and thanks for the respone - I am actually using version 5.3.1.0 but still getting the error?
0
Stanimir
Telerik team
answered on 17 Dec 2008, 09:23 AM
Hello Dan Lewis,

Could you make sure that you extended your SharePoint site with ASP.NET AJAX correctly. In our online help you can find the following articles.
1. Extending your MOSS site with Microsoft ASP.NET AJAX 1.0
2. Extending your MOSS site with Microsoft ASP.NET AJAX 3.5
In addition to the second article it is important to add the following lines
0
Dan Lewis
Top achievements
Rank 1
answered on 17 Dec 2008, 12:00 PM
Thanks Stanimir,

I do have the Ajax integration working fine, as I have been using the Telerik controls fine in other parts of my WSS site (I am using RadCombo, RadGrid etc with the Ajax functionality). I also have the assembly redirect in place as I using 3.5 instead of the original version.

On a related note, my WSS solution adds the telerik assembly to the GAC. This seems to be running fine alongside the RadEditor solution apart from this JavaScript error I am getting. Is this a tested / supported scenario?

Regards,

Dan.
0
Stanimir
Telerik team
answered on 19 Dec 2008, 02:13 PM
Hi Dan Lewis,

Could you please open a formal support ticket, where you can send us a couple of screen shots of the problem and some additional information, which will help us to reproduce the problem on our side. We will appreciate a step by step scenario or a sample of some HTML code as well.

Once you do this, we will be glad to help you further.

Thank you.


Sincerely yours,
Stanimir
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
WebParts for SharePoint
Asked by
Dan Lewis
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Dan Lewis
Top achievements
Rank 1
Share this question
or