or
<telerik:RadAjaxLoadingPanel ID="LocationsLoadingPanel" runat="server" Transparency="30" Skin="Vista"></telerik:RadAjaxLoadingPanel> <telerik:RadAjaxPanel ID="LocationsPanel" runat="server" LoadingPanelID="LocationsLoadingPanel"> <telerik:RadTreeView ID="LocationsTreeView" runat="server" EnableDragAndDrop="true" MultipleSelect="true" EnableDragAndDropBetweenNodes="true" AllowNodeEditing="true" OnContextMenuItemClick="LocationsTreeView_ContextMenuItemClick" OnClientContextMenuItemClicking="onClientContextMenuItemClicking" OnClientContextMenuShowing="onClientContextMenuShowing" OnNodeEdit="LocationsTreeView_NodeEdit" OnNodeDrop="LocationsTreeView_NodeDrop" OnClientNodeDropping="onNodeDropping" OnClientNodeDragging="onNodeDragging"> <ContextMenus> <telerik:RadTreeViewContextMenu ID="MainContextMenu" runat="server"> <Items> <telerik:RadMenuItem Value="Rename" Text="Rename ..." Enabled="true" ImageUrl="images/icons/edit_48.png" PostBack="false"> </telerik:RadMenuItem> <telerik:RadMenuItem IsSeparator="true"> </telerik:RadMenuItem> <telerik:RadMenuItem Value="addLocation" Text="Add Location" ImageUrl="images/icons/add_16.png"> </telerik:RadMenuItem> <telerik:RadMenuItem Value="editDetails" Text="Edit Details" PostBack="true" /> </Items> <CollapseAnimation Type="none" /> </telerik:RadTreeViewContextMenu> </ContextMenus> </telerik:RadTreeView> </telerik:RadAjaxPanel> <telerik:RadWindowManager ID="locationRadWindow" runat="server" />RadWindow window1 = new RadWindow();window1.NavigateUrl = "http://www.google.com";window1.VisibleOnPageLoad = true;window1.Width = 500;window1.Height = 300;window1.VisibleOnPageLoad = true;locationRadWindow.Windows.Add(window1);
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="radtooltip.aspx.cs" Inherits="WebApplication1.radtooltip" %><%@ Register Assembly="Telerik.Web.UI, Version=2010.2.713.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server"></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> <asp:ScriptManager ID="MasterScriptManager" runat="server" AsyncPostBackTimeout="300" ScriptMode="Release"> </asp:ScriptManager> <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Position="Center" RelativeTo="Element" Width="400px" Height="200px" Animation="Resize" Skin="Default" OnAjaxUpdate="OnAjaxUpdate" ShowEvent="OnClick" EnableShadow="true" RenderInPageRoot="true" ShowDelay="0"> </telerik:RadToolTipManager> <asp:GridView ID="AttivitaGv" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" OnRowDataBound="AttivitaGV_RowDataBound" Width="950px" ViewStateMode="Enabled" CellPadding="3"> <columns> <asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="60px"> <ItemTemplate> <asp:RadioButton ID="rbPianificata" runat="server" GroupName="StatoAttivita" /> </ItemTemplate> </asp:TemplateField> <asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="60px"> <ItemTemplate> <asp:RadioButton ID="rbEffettuata" runat="server" GroupName="StatoAttivita" /> </ItemTemplate> </asp:TemplateField> <asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="60px"> <ItemTemplate> <asp:RadioButton ID="rbAnnullata" runat="server" GroupName="StatoAttivita" /> </ItemTemplate> </asp:TemplateField> <asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="60px"> <ItemTemplate> <asp:RadioButton ID="rbRipianificata" runat="server" GroupName="StatoAttivita" /> </ItemTemplate> </asp:TemplateField> </columns> <pagersettings mode="NumericFirstLast" /> <alternatingrowstyle cssclass="GridAlternating" /> <editrowstyle cssclass="GridEdit" /> <footerstyle cssclass="GridFooter" /> <headerstyle cssclass="GridHeader" /> <pagerstyle cssclass="GridPager" /> <rowstyle cssclass="GridRow" /> <selectedrowstyle cssclass="GridSelectedRow" /> <sortedascendingcellstyle cssclass="GridSortedCells" /> <sortedascendingheaderstyle cssclass="GridSortedHeader" /> <sorteddescendingcellstyle cssclass="GridSortedCells" /> <sorteddescendingheaderstyle cssclass="GridSortedHeader" /> </asp:GridView></asp:Content>using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using Telerik.Web.UI;namespace WebApplication1{ public partial class radtooltip : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { List<Item> items = new List<Item>(); items.Add(new Item() { IdCliente = 1, Email = "Mark" }); items.Add(new Item() { IdCliente = 2, Email = "Jon" }); items.Add(new Item() { IdCliente = 3, Email = "Frank" }); items.Add(new Item() { IdCliente = 4, Email = "Mark" }); AttivitaGv.DataSource = items; AttivitaGv.DataBind(); } protected void AttivitaGV_RowDataBound(object sender, GridViewRowEventArgs e) { try { if (e.Row.RowType == DataControlRowType.DataRow) { this.RadToolTipManager1.TargetControls.Add(((RadioButton)e.Row.FindControl("rbPianificata")).ClientID, "123", true); } } catch (Exception ex) { throw new Exception(ex.Message, ex); } } protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs args) { this.UpdateToolTip(args.Value, args.UpdatePanel); } private void UpdateToolTip(string elementID, UpdatePanel panel) { Control ctrl = Page.LoadControl("AttivitaShort.ascx"); panel.ContentTemplateContainer.Controls.Add(ctrl); AttivitaShort details = (AttivitaShort)ctrl; details.ConfigureView(int.Parse(elementID)); } public class Item { private int id; public int IdCliente { get { return id; } set { id = value; } } private string name; public string Email { get { return name; } set { name = value; } } } }}<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AttivitaShort.ascx.cs" Inherits="WebApplication1.AttivitaShort" %><asp:Label ID="lbl1" runat="server"></asp:Label>using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;namespace WebApplication1{ public partial class AttivitaShort : System.Web.UI.UserControl { protected void Page_Load(object sender, EventArgs e) { } public void ConfigureView(int IdCliente) { lbl1.Text = IdCliente.ToString(); } }}
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" VisibleStatusbar="false" ReloadOnShow="true" RestrictionZoneID="MainArea"> <Windows> <telerik:RadWindow ID="ReportWindow1" runat="server" KeepInScreenBounds="True" Modal="True" Behaviors="Close,Maximize" Height="800px" Width="1000px" ShowContentDuringLoad="True" Title="" EnableEmbeddedSkins="False" DestroyOnClose="False"> </telerik:RadWindow> </Windows> </telerik:RadWindowManager>
string newWindowUrl = "Popups/Default1.aspx?WindowArgs=" + windowArgs; string javaScript = "<script type='text/javascript'>\n" + "<!--\n" + "var newwindow = window.radopen('" + newWindowUrl + "' +',' + 'RadWindow1');\n" + "newwindow.focus();\n" + "// -->\n" + "</script>\n"; Page.ClientScript.RegisterStartupScript(t, "Email", javaScript); <telerik:RadWindowManager ID="RadWindowManager1" ShowContentDuringLoad="false" VisibleStatusbar="false" EnableViewState="true" ReloadOnShow="true" runat="server" Skin="Default" EnableShadow="false" > <Windows> <telerik:RadWindow ID="RadWindow1" VisibleTitlebar="false" runat="server" Behaviors="Close, Move, Resize" AutoSize="true" NavigateUrl="~/Popups/Default1.aspx"> </telerik:RadWindow> </Windows> </telerik:RadWindowManager>