Error Trying to Use set_html Function

4 posts, 0 answers
  1. Alison
    Alison avatar
    1 posts
    Member since:
    Mar 2019

    Posted 27 Mar Link to this post

    Hi Everyone,

    I am trying to use set_html function (besides other functions) but for some reason it stoped to work properly some weeks ago. Maybe related to jQuery version update, I don't know. This issue is freaking me out and I don't know how to solve it since it looks like something internal. Below you can see what I am saying, the error that I am facing.

     

    Uncaught TypeError: Cannot read property 'selection' of undefined
        at b.Selection.getRange (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:11847)
        at b.Selection.getParentElement (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:11857)
        at Telerik.Web.UI.Editor.TableInsertColumn.getSelectedCell (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:6130)
        at Telerik.Web.UI.Editor.TableInsertColumn.getState (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:6179)
        at c.RadEditor.getToolState (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:12870)
        at b.DefaultToolAdapter.setToolState (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:16231)
        at b.DefaultToolAdapter._onEditorSelectionChange (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:16408)
        at Array.<anonymous> (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:6)
        at Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:6
        at c.RadEditor.raiseEvent (Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ab7585254-495e-4311-9545-1f910247aca5%3aea597d4b%3bTelerik.Web.UI%3aen%3acb3d1a3e-7303-48dc-a612-61700f912203%3a16e4e7cd%3a365331c3%3a24ee1bba%3a874f8ea2%3a63b115ed%3a1569bb5f%3a92fe8ea0%3afa31b949%3a4877f69a%3a3856fd9f%3ac128760b%3adc7e0bd%3a8547b8b2%3a30f1f089%3a19620875%3af46195d3%3a490a9d4e:1038)

     

    Could you guys help me to figure this out?

     

    Thanks in advance!

  2. Rumen
    Admin
    Rumen avatar
    13945 posts

    Posted 27 Mar Link to this post

    Hi Alison,

    Can you please download the latest internal build Telerik_UI_for_ASP.NET_AJAX_2019_1_318_Trial_hotfix.zip from https://www.telerik.com/account/product-download?product=RCAJAX -> Internal Builds and test it?

    If the problem still persists, please provide a simple runnable project which demonstrates the error along with steps to reproduce it so that I can debug it? 

    The set_html() method can be also tested online at https://demos.telerik.com/aspnet-ajax/editor/examples/clientsideapi/defaultcs.aspx -> Demo Configurator -> Content tab. Do you reproduce the error in the demo?

    Best regards,
    Rumen
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  3. debett
    debett avatar
    31 posts
    Member since:
    Feb 2007

    Posted 05 Apr Link to this post

    I'm experiencing the same issue when the editor is located inside radwindow. Trying the latest internal build didn't help.
  4. Rumen
    Admin
    Rumen avatar
    13945 posts

    Posted 08 Apr Link to this post

    Hi Thomas,

    I just answered your support ticket on the matter.

    The problem was due to that the OnClientShow="betterFixForEditor" property is set to RadEditor, but not to RadWindow.

    Please set it to RadWindow and test again:

    <telerik:RadWindow ID="RadWindow1" OnClientShow="betterFixForEditor" runat="server" Modal="True" VisibleOnPageLoad="True">


    In case the problem is other please provide a reproduction project in the support ticket so that I can help you right away.

    Best regards,
    Rumen
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top