+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Telerik javascript error

Telerik javascript error

2 posts, 0 answered
  1. higgsy
    higgsy avatar
    336 posts
    Registered:
    05 Aug 2010
    01 Nov 2010
    Link to this post
    Hi,

    On a page within our website we are using the an overriden version of the News Archive Control. It appears that this control is adding the following JS to the page which is actually creating a client-side script error.

    <script type="text/javascript">
    //<![CDATA[
    SearchBox.Create('Search.aspx', 'AllWords', 'search', 'ctl00_cphSearchBox_tm_SearchBox1_ctl00_ctl00_queryText', 'ctl00_cphSearchBox_tm_SearchBox1_ctl00_ctl00_searchButton');Telerik.Web.UI.RadTreeView._preInitialize("ctl00_cphSideCol_NewsArchiveControl1_ctl00_ctl00_archiveTreeView","0");Sys.Application.initialize();
     
    WebForm_InitCallback();Sys.Application.add_init(function() {
     $create(Telerik.Web.UI.RadTreeView, {"_showLineImages":false,"_skin":"Default","_uniqueId":"ctl00$cphSideCol$NewsArchiveControl1$ctl00$ctl00$archiveTreeView","clientStateFieldID":"ctl00_cphSideCol_NewsArchiveControl1_ctl00_ctl00_archiveTreeView_ClientState","collapseAnimation":"{\"duration\":200}","expandAnimation":"{\"duration\":200}","nodeData":[{"value":"2010"},{"value":"2009"},{"value":"2008"},{"cssClass":"blue dottedUnderline dottedUnderlineBlue iconArrowUniversal removeBlock"}]}, null, null, $get("ctl00_cphSideCol_NewsArchiveControl1_ctl00_ctl00_archiveTreeView"));
    });
    //]]>
    </script>

    The error is:

    "Telerik is not defined".

    How do i resolve this issue?

    Thanks
    higgsy
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    01 Nov 2010
    Link to this post
    Hi higgsy,

    Please take a look at

    General Troubleshooting
    Web Resources demystified: Part 3 (Troubleshooting)

    Make sure that you have not disabled the embedded resources of RadTreeView control used by NewsArchive control. By default the control does not produce any errors ( you can check it on our demo)

    Greetings,
    Ivan Dimitrov
    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
2 posts, 0 answered