JavaScript error when editing via DataView / DataForm webpart

6 posts, 0 answers
  1. Dan Lewis
    Dan Lewis avatar
    13 posts
    Member since:
    Feb 2005

    Posted 27 Nov 2008 Link to this post

    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.
  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 28 Nov 2008 Link to this post

    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.

  3. Dan Lewis
    Dan Lewis avatar
    13 posts
    Member since:
    Feb 2005

    Posted 15 Dec 2008 Link to this post

    Hi and thanks for the respone - I am actually using version 5.3.1.0 but still getting the error?
  4. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 17 Dec 2008 Link to this post

    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 to the web.config <runtime><assemblyBinding> section
    <dependentAssembly> 
      <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/> 
      <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/> 
    </dependentAssembly> 
    <dependentAssembly> 
      <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/> 
      <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/> 
    </dependentAssembly> 



    I hope this helps.

    All the best,
    Stanimir
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Dan Lewis
    Dan Lewis avatar
    13 posts
    Member since:
    Feb 2005

    Posted 17 Dec 2008 Link to this post

    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.
  6. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 19 Dec 2008 Link to this post

    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.
Back to Top