or
Editor.ToolbarMode = Telerik.Web.UI.EditorToolbarMode.PageTop;protected void grid_ItemCreated(object sender, GridItemEventArgs e){ if (e.Item is GridEditableItem) { if (e.Item.DataItem != null) { int contractid = (e.Item.DataItem as Contract).ContractId; var records = GetRecords(contractid); foreach (var record in records) { var button = new RadButton(); button.Text = contractid.ToString(); button.Click += delegate { button.Text = "fired!"; }; var phContract = (PlaceHolder)e.Item.FindControl("placeholder"); phContract.Controls.Add(contract); } } }}$find("<%= AddActiviteWindow.ClientID %>").getWindowBounds(); i get :this is because in _getCurrentBounds you do : var c=(this._popupElement.style.display=="none")?true:false;Uncaught TypeError: Cannot read property 'style' of null Telerik.Web.UI.WebResource.axd:7068a.RadWindow._getCurrentBounds Telerik.Web.UI.WebResource.axd:7068a.RadWindow._getCalculatedPopupBounds Telerik.Web.UI.WebResource.axd:7097a.RadWindow.getWindowBounds Telerik.Web.UI.WebResource.axd:6848reSizeRadeditor
but you don't check if _popupElement exist. In my case because the radwindow is not display, _popupElement is null so i would suggest to add : if (!this._popupElement) return; before this._getCurrentBounds() in the function _getCalculatedPopupBounds
best regards Mathieu
Private button As New RadButton() button.ID = "btnload" button.Text = "load photo" button.Skin = "Office2010Silver" button.Icon.PrimaryIconCssClass = "rbAdd" Dim tip As RadToolTip = New RadToolTip tip.ID = "RadTooltip1" tip.Controls.Add(button) RadAjaxPanel1.Controls.Add(tip) tip.TargetControlID = "Imgprofile" tip.Width = Unit.Pixel(120) tip.Height = Unit.Pixel(30) tip.RelativeTo = ToolTipRelativeDisplay.Element tip.Position = ToolTipPosition.MiddleRight tip.HideEvent = ToolTipHideEvent.ManualClose tip.Show()Dim script As String = "function f(){$find(""" + RadWindowLoadprofile.ClientID + """).show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);"ScriptManager.RegisterStartupScript(Me, Me.[GetType](), "key", script, True)<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <style type="text/css"> html, body, form { height:100%; margin: 0px; padding: 0px; overflow: hidden; } </style> <asp:ContentPlaceHolder id="head" runat="server" /></head><body> <div style="height:100px; background-color:blue;">Test Master Content</div> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" /> <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server" /> </form></body></html><%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"></asp:Content><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <telerik:RadSplitter ID="RadSplitter1" runat="server" Width="100%" Height="100%" Orientation="Horizontal"> <telerik:RadPane ID="RadPane1" runat="server" Width="100%" height="50px" BackColor="Red"> <p>This is a test</p> </telerik:RadPane> <telerik:RadSplitBar ID="RadSplitBar1" runat="server" /> <telerik:RadPane ID="RadPane2" runat="server" Width="100%" Height="100%"> <telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadGrid1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManagerProxy> <telerik:RadGrid ID="RadGrid1" runat="server" Width="100%" Height="100%" OnNeedDataSource="RadGrid1_NeedDataSource" /> </telerik:RadPane> </telerik:RadSplitter></asp:Content>