or
ClientScript.RegisterStartupScript(Page.GetType(), ShowRemarks, "ShowRemarksDialog();", true);<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> <script type="text/javascript"> function ShowRemarksDialog() { Sys.Application.add_load(function() { window.radopen("UpdateRemarks.aspx?ScreenType=1", "RemarksDialog"); return false; }); } function refreshGrid() { $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind"); } </script> </telerik:RadCodeBlock><script type="text/javascript"> function CloseAndRebind() { GetRadWindow().BrowserWindow.refreshGrid(); GetRadWindow().close(); } function GetRadWindow() { var oWindow = null; if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz as well) return oWindow; } function CancelEdit() { GetRadWindow().close(); } </script> <telerik:RadGrid ID="objectGrid" runat="server" AutoGenerateColumns="false" GridLines="None" AllowPaging="true" PageSize="25" EnableLinqExpressions="false" AllowSorting="true" AllowFilteringByColumn="true" AllowMultiRowSelection="true" OnNeedDataSource="LoadData" OnItemDataBound="objectGrid_ItemDataBound" OnItemCommand="objectGrid_OnItemCommand" OnItemCreated="objectGrid_ItemCreated" OnPageIndexChanged="objectGrid_OnPageIndexChanged"> <ExportSettings IgnorePaging="true" OpenInNewWindow="true" HideStructureColumns="true" > <Excel Format="Html" /> </ExportSettings> <MasterTableView CommandItemDisplay="Top"> <CommandItemSettings ShowExportToExcelButton="true" ShowAddNewRecordButton="false"/> <Columns> <telerik:GridTemplateColumn meta:resourcekey="colChecks" UniqueName="colChecks" AllowFiltering="false"> <ItemTemplate> <table> <tr> <td width="20px"> <asp:ImageButton ID="imgActions" runat="server" meta:resourcekey="imgActions" ImageUrl="~/Images/wizzard_16.png" Visible='<%# this.HasAvailableChecks(Eval("Id")) %>' CommandArgument='<%# Eval("Id") %>' /> </td> </tr> </table> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> </MasterTableView></telerik:RadGrid> <telerik:RadToolTipManager ID="toolTipManager" runat="server" ShowEvent="OnClick" EnableViewState="true" AutoTooltipify="false" OnAjaxUpdate="OnAjaxUpdate" ManualClose="true" Position="BottomRight" RelativeTo="Element" OnClientHide="OnClientClose" Width="300px"></telerik:RadToolTipManager>protected void objectGrid_OnItemCommand(object source, GridCommandEventArgs e) { if (e.CommandName == "ExportToExcel") { GridExport(); } if (e.CommandName == "Page" || e.CommandName == "ChangePageSize" || e.CommandName == "Filter") { toolTipManager.TargetControls.Clear(); BindData(); } }protected void objectGrid_ItemDataBound(object sender, GridItemEventArgs e) { if (e.Item.ItemType == GridItemType.AlternatingItem || e.Item.ItemType == GridItemType.Item) { // Actions ImageButton actions = e.Item.FindControl("imgActions") as ImageButton; toolTipManager.TargetControls.Add(actions.ClientID, actions.CommandArgument, true); } } protected void objectGrid_OnPageIndexChanged(object sender, GridPageChangedEventArgs e) { toolTipManager.TargetControls.Clear(); }<telerik:RadDock ID="RadDock3" runat="server" Width="300px" Resizable="True" DockHandle="Grip"> <ContentTemplate> <div> <span id="Message" runat="server">Hello World</span> </div> </ContentTemplate> </telerik:RadDock>
Dim myHtml As String = Message.InnerHtml
function selectNews() { var mV = $find("<%= radThumbs.ClientID %>"); mV.set_selectedIndex(1); }Attempt #1:alert('item.children[i].innerHTML.replace(/\s/g, "")');var test = $find(item.children[i].innerHTML.replace(/\s/g, ""));Attempt #2:alert('item.children[i].innerHTML.replace(/\s/g, "")');var test = document.getElementById(item.children[i].innerHTML.replace(/\s/g, ""));
test.set_selectedIndex(1);
In all attempts the alertbox shows the correct id.<asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate><asp:PlaceHolder><teleriksharepoint:spradeditor runat="server" id="description-txt" dialoghandlerurl="~/Telerik.Web.UI.DialogHandler.axd"> </teleriksharepoint:spradeditor></asp:PlaceHolder><ContentTemplate></asp:UpdatePanel>the problem is: - after a postback the editor froze and the floating menu does not appear anymore. Other controls still work but the editor breaks, and content is lost. This problem does not happen all the time. I've noticed that it specifically happens when there is text pasted in from some other source (i dunno if this makes any difference or not). It also happens after typing the text too. I found a tentative solution here for my problem. I tried it but it didnt work for me in my page inside sharepoint. I am wondering if this is happening only to me or everybody. What could be the steps to address this kind of issue? There seems to be no javascript error, nor server side one. I am stuck on how to address this. Thanks for any of your help, -Daniel
