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

Disabling EmbeddedScripts still serves a webresource file

1 Answer 79 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
deval
Top achievements
Rank 1
deval asked on 27 Dec 2010, 12:01 PM
Hi,

I disabled all EmbeddedScripts and style sheets for all telerik controls in my application and put everything in one combined file.
Eveything works as expected, apart from the TreeView Control. Every page with the TreeView control still fetches a javascript file from the webresource handler
function WebForm_PostBackOptions(eventTarget, eventArgument, validation, validationGroup, actionUrl, trackFocus, clientSubmit) {
    this.eventTarget = eventTarget;
.......

I don't understand why, as every other telerik control I use (RadMenu, RadRotator, RadSlider etc.) behaves correctly and doesn't request any additional files.

Below the settings I use
<telerik:RadTreeView ID="categorynavigation"
            ViewStateMode="Disabled" 
            Runat="server"
            EnableEmbeddedScripts="false"
            EnableEmbeddedSkins="false"
            EnableEmbeddedBaseStylesheet="false"
            RegisterWithScriptManager="false"
            onnodedatabound="categorynavigation_NodeDataBound"
            onprerender="categorynavigation_PreRender"
            ClientIDMode="Static"
            ></telerik:RadTreeView>

and the RadScriptManager in my master page
<telerik:RadScriptManager ID="rsmMaster" runat="server" ScriptMode="Release"
            LoadScriptsBeforeUI="false"
            AjaxFrameworkMode="Disabled"
            EnableScriptCombine="False"
            EnablePageMethods="False"
            EnableScriptLocalization="False"
            EnableScriptGlobalization="False"
            EnablePartialRendering="False"
            EnableHandlerDetection="False"
           EnableViewState="false"
            CompositeScript-NotifyScriptLoaded="False"
                                  CompositeScript-ScriptMode="Release"
                                  OutputCompression="Disabled">
            <CdnSettings TelerikCdn="Disabled" />
            <Scripts>
            </Scripts>
        </telerik:RadScriptManager>

To summarize, I don't want that any telerik control to request any files (js, css)

Regards, Deval

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 03 Jan 2011, 04:12 PM
Hi deval,

Indeed the script is still registered and it is unnecessary in this case. We will fix that so that when RadTreeView does not need to fire a post- or a call- back the script will not register.

I updated your Telerik points for reporting this issue.

All the best,
Simon
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
TreeView
Asked by
deval
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or