This is the script manager in the master:
<
asp:ScriptManager ID="Scriptmanager1" AsyncPostBackTimeout="800" runat="server" EnableScriptGlobalization="True" EnableScriptLocalization="false" EnablePartialRendering="True" ScriptPath="~\MicrosoftAjaxLibrary" ScriptMode="Release">
</asp:ScriptManager>
this is the aspx code of the page
<%
@ Page Language="C#" AutoEventWireup="true" Codebehind="BuscarProcesosArbolV2.aspx.cs" Inherits="Proceso_BuscarProcesosArbolV2"
Title="BuscarProcesosArbolV2" MasterPageFile="~/Shared/Default.master" %>
<%
@ Register Assembly="Microsoft.Practices.Web.UI.WebControls" Namespace="Microsoft.Practices.Web.UI.WebControls"
TagPrefix="pp" %>
<%
@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%
@ MasterType VirtualPath="~/Shared/Default.master" %>
<%
@ Register Src="../Shared/Titulo.ascx" TagName="Titulo" TagPrefix="uc1" %>
<%
@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%
@ Register Src="../Shared/TituloPopup.ascx" TagName="TituloPopup" TagPrefix="uc4" %>
<%
@ Register Src="ReporteProcesos.ascx" TagName="ReporteProcesos" TagPrefix="uc3" %>
<
asp:Content ID="content" ContentPlaceHolderID="DefaultContent" Runat="Server">
<uc1:Titulo ID="Titulo1" runat="server" Titulo="<%$ Resources:Titulo1Titulo %>" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Table ID="TablaValor" runat="server">
<asp:TableRow>
<asp:TableCell ColumnSpan="4" id="tcGeneracionValor" text="<%$ Resources:tcGeneracionValor %>" CssClass="TdCeldaSubTituloSeccion">
</asp:TableCell>
</asp:TableRow>
</asp:Table>
<telerik:RadTreeView ID="RadTreeView1" runat="server" >
</telerik:RadTreeView>
15 Answers, 1 is accepted
| # | Result | Protocol | Host | URL | Body | Caching | Content-Type | User-defined |
|---|---|---|---|---|---|---|---|---|
| 15 | 404 | HTTP | localhost:3801 | /MicrosoftAjaxLibrary/Telerik.Web.UI/2007.3.1218.20/Telerik.Web.UI.Common.Toolkit.CommonScripts.js | 2.297 | private | text/html; charset=utf-8 | |
| 16 | 404 | HTTP | localhost:3801 | /MicrosoftAjaxLibrary/Telerik.Web.UI/2007.3.1218.20/Telerik.Web.UI.Common.Toolkit.TimerScripts.js | 2.296 | private | text/html; charset=utf-8 | |
| 17 | 404 | HTTP | localhost:3801 | /MicrosoftAjaxLibrary/Telerik.Web.UI/2007.3.1218.20/Telerik.Web.UI.Common.Toolkit.AnimationScripts.js | 2.300 | private | text/html; charset=utf-8 | |
| 18 | 404 | HTTP | localhost:3801 | /MicrosoftAjaxLibrary/Telerik.Web.UI/2007.3.1218.20/Telerik.Web.UI.Common.Toolkit.BaseScripts.js | 2.295 | private | text/html; charset=utf-8 | |
| 21 | 404 | HTTP | localhost:3801 | /MicrosoftAjaxLibrary/Telerik.Web.UI/2007.3.1218.20/Telerik.Web.UI.TreeView.RadTreeViewScripts.js | 2.296 | private | text/html; charset=utf-8 |
| <controls> |
| <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> |
| </controls> |
You seem to have set the ScriptPath property of the ScriptManager. This effectively makes all scripts registered with the SriptManager to be requested from that location.
Regards,
Albert
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
We are currently not shipping the JavaScript files separately. They are only available as embedded resources in the Telerik.Web.UI.dll assembly. If you are not setting the ScriptPath property everything should work as expected.
Regards,
Albert
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
thanks!
The solution would be to avoid setting the ScriptsPath property of the ScriptManager control. If you set it all script references will be requested from the path specified by ScriptsPath.
Regards,
Albert
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
As I said before currently we are not shipping the JavaScript files of the Prometheus suite. As a result you cannot use them along with the ScriptsPath property. As with performance related problems - by default the ScriptManager output debug scripts which could potentially cause performance issues. You can try with setting the debug attribute of the <compilation> tag to "false" or setting the ScriptMode property of the ScriptManager to "Release".
I hope this helps,
Albert
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
thanks
Please check our online example demonstrating how to use the treeview context menu:
http://www.telerik.com/demos/aspnet/prometheus/Treeview/Examples/Functionality/ContextMenu/DefaultCS.aspx
Here is a simple setup of a treeview with one context menu:
| <telerik:RadTreeView ID="RadTreeView1" Runat="server"> |
| <ContextMenus> |
| <telerik:RadTreeViewContextMenu Skin="Outlook" ID="MainContextMenu" runat="server"> |
| <Items> |
| <telerik:RadMenuItem Text="One" /> |
| <telerik:RadMenuItem Text="Two" /> |
| </Items> |
| </telerik:RadTreeViewContextMenu> |
| </ContextMenus> |
| <Nodes> |
| <telerik:RadTreeNode Text="One"> |
| <Nodes> |
| <telerik:RadTreeNode Text="Two" /> |
| </Nodes> |
| </telerik:RadTreeNode> |
| </Nodes> |
| </telerik:RadTreeView> |
I hope this helps,
Albert
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I've got another problem, when I'm using a radtreeview inside a datalist i need to bind all the data in code, it doesn't work the contextmenu, what should I do?
this is some code, of aspx
<asp:DataList ID="dtlProcesosValor" runat="server" RepeatDirection="Horizontal" RepeatColumns="3"
ItemStyle-CssClass="treeSoporte">
<ItemTemplate>
<telerik:RadTreeView ID="trvProcesosValor" runat="server" OnContextMenuItemClick="RadTreeView1_ContextMenuItemClick"
>
<ContextMenus >
<telerik:RadTreeViewContextMenu ID="MainContextMenu" runat="server" Skin="Outlook">
<Items>
<telerik:RadMenuItem Value="Editar" Text="Editar" ></telerik:RadMenuItem>
<telerik:RadMenuItem Value="Eliminar" Text="Eliminar" PostBack="true" ></telerik:RadMenuItem>
<telerik:RadMenuItem Value="Detalle" Text="Detalle" ></telerik:RadMenuItem>
<telerik:RadMenuItem Value="Ver Diagrama" Text="Ver Diagrama" PostBack="true"></telerik:RadMenuItem>
<telerik:RadMenuItem Value="Eliminar Diagrama" Text="Eliminar Diagrama" PostBack="true"></telerik:RadMenuItem>
</Items>
</telerik:RadTreeViewContextMenu>
</ContextMenus>
</telerik:RadTreeView>
</ItemTemplate>
</asp:DataList>
We had a problem with context menus being cleared after databinding the treeview. Please make sure you are using our latest bits where this problem has been fixed. The version number of the assembly should be
2007.3.1314.20
Regards,
Albert
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center