2014-08-27 59 views
0

我想升級Telerik和AjaxControlToolKit控件。有了這個改變,我不得不使用AjaxControlToolKitManager。我已經在ToolKitScriptManager的ControlBundle下引用的AjaxControlTool.Config中定義了ControlBundle。通過此更改,拖放Telerik RadGrid無法正常工作。你能幫我解決這個問題嗎?請讓我知道你是否想要更多的細節。這是我的代碼RadGrid選擇行拖放不工作如果使用AjaxControlToolKit.Config

<ajaxToolkit:ToolkitScriptManager ID="masterPageScriptManager" runat="server" AsyncPostBackTimeout="1200" ScriptMode="Release" EnablePageMethods="true" 
    EnableScriptGlobalization="true" CombineScripts="false"> 
    <CompositeScript> 
     <Scripts> 
      <asp:ScriptReference path = "~/Telerik/Scripts/Common/Core.js" /> 
      <asp:ScriptReference path = "~/Telerik/Scripts/Ajax/Ajax.js" /> 
      <asp:ScriptReference path = "~/Telerik/Scripts/Common/jQuery.js" /> 
      <asp:ScriptReference path = "~/Telerik/Scripts/Common/jQueryPlugins.js" /> 
      <asp:ScriptReference path = "~/Telerik/Scripts/Common/Scrolling/ScrollingScripts.js"/> 
      <asp:ScriptReference path = "~/Telerik/Scripts/Common/Navigation/OData/OData.js" /> 
      <asp:ScriptReference path = "~/Telerik/Scripts/Common/AnimationFramework/AnimationFramework.js" /> 
      <asp:ScriptReference path = "~/Telerik/Scripts/Common/Navigation/OverlayScript.js" /> 
      <asp:ScriptReference path = "~/Telerik/Scripts/Common/Navigation/NavigationScripts.js" /> 
      <asp:ScriptReference path = "~/Telerik/Scripts/Menu/RadMenuScripts.js" /> 
      <asp:ScriptReference path = "~/Telerik/Scripts/Menu/ContextMenu/RadContextMenuScripts.js" /> 
      <asp:ScriptReference path = "~/Telerik/Scripts/Menu/MenuItem/RadMenuItem.js" /> 
      <asp:ScriptReference path = "~/Telerik/Scripts/Menu/Views/ClassicView.js" /> 
      <asp:ScriptReference path = "~/Telerik/Scripts/AutoCompleteBox/RadAutoCompleteBoxScripts.js" /> 
      <asp:ScriptReference path = "~/Telerik/Scripts/Common/Popup/PopupScripts.js" /> 
      <asp:ScriptReference path = "~/Telerik/Scripts/Spell/SpellCheckService.js" /> 
      <asp:ScriptReference path = "~/Telerik/Scripts/Common/LayoutBuilder/LayoutBuilderEngine.js" /> 
      <asp:ScriptReference path = "~/Telerik/Scripts/Common/Widgets/Draggable.js" /> 
      <asp:ScriptReference path = "~/Telerik/Scripts/Common/Widgets/Resizable.js" /> 
      <asp:ScriptReference path = "~/Telerik/Scripts/Editor/RadEditor.js" /> 
      <asp:ScriptReference path = "~/Telerik/Scripts/Dialogs/RadDialogOpenerScripts.js" /> 
      <asp:ScriptReference path = "~/Telerik/Scripts/Common/Animation/AnimationScripts.js" /> 
      <asp:ScriptReference path = "~/Telerik/Scripts/Common/TouchScrollExtender.js" /> 
      <asp:ScriptReference path = "~/Telerik/Scripts/Window/RadWindowScripts.js" /> 
      <asp:ScriptReference path = "~/Telerik/Scripts/Grid/RadGridScripts.js" /> 
      <asp:ScriptReference path = "~/Telerik/Scripts/ComboBox/RadComboBoxScripts.js" /> 
      <asp:ScriptReference path = "~/Telerik/Scripts/ComboBox/Views/ClassicView.js"/> 
     </Scripts> 
    </CompositeScript> 
    <ControlBundles> 
     <ajaxToolkit:ControlBundle Name="AdminMaster" /> 
    </ControlBundles> 
</ajaxToolkit:ToolkitScriptManager> 

<ajaxControlToolkit> 
    <controlBundles> 
     <controlBundle name="AdminMaster"> 
      <control name="ModalPopupExtender"></control> 
      <control name="CalendarExtender"></control> 
      <control name="CascadingDropDown"></control> 
      <control name="CollapsiblePanelExtender"></control> 
      <control name="AutoCompleteExtender"></control> 
      <control name="FilteredTextBoxExtender"></control> 
      <control name="TextBoxWatermarkExtender"></control> 
      <control name="MaskedEditExtender"></control> 
      <control name="MaskedEditValidator"></control> 
     </controlBundle> 
    </controlBundles> 
</ajaxControlToolkit> 

回答

0

工具包腳本管理器是否結合腳本引用?如果是這樣,你能阻止它,看看事情是否好嗎?

此外,將您加載的腳本與此頁面進行比較,看看您是否具有所有必需的正確順序:http://www.telerik.com/help/aspnet-ajax/introduction-disabling-embedded-resources.html。您可以使用RadGrid設置創建一個簡單的頁面,使用RadScriptManager啓用Telerik腳本CDN並查看下載了哪些腳本,以便確保列表中存在相同的腳本。

另外,你會得到腳本錯誤?如果是這樣 - 什麼? toolkitScriptManager不再與asp:ScriptManager兼容,我不確定這會帶來什麼問題。最有可能的是,您可以在Telerik套件或jQuery中找到ACT控件的替代品,這樣您就可以放棄它並停止將這些問題集成到一起。