C# - How To Keep TinyMCE After Postback In An UpdatePanel

Aug 17, 2010

When I click a button that causes a postback on the UpdatePanel it calls the tinyMCE.triggerSave().

It reloads the panel and the editor show up again, but when I try to call tinyMCE.triggerSave() the second time I get the following error:

g.win.document is null

I though it was getting the old instance, but I'm also removing the control (tinyMCE.execCommand('mceRemoveControl',false,'Editor');) after I call the save. Even so it still crashes the second time.

View 1 Replies

Similar Messages:

AJAX :: Using Multiple TinyMCE Rich TextBox Editor Inside UpdatePanel Across Partial PostBack

May 7, 2015

I saw article [URL] .... that is working fine 

I have a page with multiple textbox multiline 

When I apply your code for three textbox then it show only one editor and remain same as simple textbox and if i click on button it flickering ...
<asp:ScriptManager ID="ScriptManager1" runat="server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine"></asp:TextBox>
<asp:HiddenField ID="HiddenField1" runat="server" />

[Code] ....

View 1 Replies

Jquery - 4.0 With TinyMCE And XML Encoding Re-encodes Content On Postback?

Jan 20, 2011

i have a ASP.NET 4.0 based CMS, where i use the TinyMCE (3.4) via jQuery to edit one Textbox.In addition to this i have several other textboxes. There is also another DropDown List on the Page, which controls the Contenttype.This Control has AutoPostback enabled and sets the visibility on the textboxes regarding the selectes item.As i want to keep the Postback Validation on i have configured the TinyXML to use xml for the content serialisation (encoding: "xml").Now i have the problem, when a postback from e.g. the DropDown List occures, the re-encodes the content.

Init: "Hallo"
1st Postback: "<p>Hallo</p>"
2nd Postback: "<p><p>Hallo</p></p>"

i have enabled the original textarea via css and this seems to be a problem of the TinyMCS's Save method.
Does anybody have a solution, how to fix this issue maybe with a custom save_callback on the TinyMCE?

View 1 Replies

Web Forms :: TinyMCE Editor Not Working In Update Panel After PostBack?

Oct 11, 2013

richtext not wroking in update panel.

View 1 Replies

AJAX :: How To Trigger Updatepanel Postback From Another Updatepanel

Mar 4, 2011

I have a web user control with one updatepanel (pnlUpdate_2), some controls and one apply button. I display the web user control as a modalpopup in my default page. In my default page i have an updatepanel (pnlUpdate_1) with a gridview and I modify that gridview with the apply button of the web user control. The web user control is for made a custom search of the gridview data. I have a problem with both updatepanels. If I set the updatemode as always in one of them (pnlUpdate_1) and the other as conditional (pnlUpdate_2), the pnlUpdate_1 make a postback in the pnlUpdate_2; I'm not an expert on this but I think that's why the pnlUpdate_2 disappear and reappear after postback of some controls in that updatepanel (not the apply button, it close the modal after postback). I try all the combinations and the problem persists. So I put both updatepanels as conditional and in some way it works; now the problem is that when I click the apply button in pnlUpdate_2 to modify the gridview in pnlUpdate_1 the pnlUpdate_1 not made the postback I get the pnlUpdate_2 postback when I use some control inside the pnlUpdate_1.

How can I postback the pnlUpdate1 from pnlUpdate_2 with the apply button?

View 3 Replies

How To Know Which UpdatePanel Causes The Partial PostBack

Jan 31, 2011

In a page contains two UpdatePanels, How can I know which UpdatePanel causes the partial PostBack ?

I mean in the Page_Load event handler.

This is my code:


View 2 Replies

How To Get The Id Of Updatepanel Which Initiated A Postback

May 25, 2010

I need to intercept server callback after udate panel async post back and determine which panel initiated the request. The code is pretty simple:

function InterceptUpdateCallback(sender, args)
var updatedPanels = args.get_panelsUpdated();
for (idx = 0; idx < updatedPanels.length; idx++) {
if (updatedPanels[idx].id == "myUpdatePanel") {

And it works when UpdatePanel is not inside another UpdatePanel. But when it is inside another UpdatePanel updatedPanels[idx].id has parent Updatepanel id. So how can I get the id of UpdatePanel which initiated the request (the inner UpdatePanel)?

View 3 Replies

VS 2008 Full Postback In Updatepanel?

Jan 16, 2010

i have upgrade my website from framework 2.0 to 3.5 but i have problem with ajax .I get full postback when i click a linkbutton inside update panel .

View 14 Replies

How To Run A Javascript Event After A Postback Within An Updatepanel

Nov 19, 2010

How do i run a javascript event after a postback within an updatepanel

View 3 Replies

C# - ImageButton In UpdatePanel Doesn't PostBack

Aug 3, 2010

I created a form in a popup div, that contain an UpdatePanel with ImageButtons in it.Initially, I used LinkButtons to test but I wanted ImageButtons. The thing is, it works well with LinkButtons and not with ImageButtons (absolutely nothing happens).

<a href="javascript:WebForm_DoPostBackWithOptions(new
"", true, "",
"", false, true))"

View 1 Replies

Call Javascript After Updatepanel Postback?

Feb 9, 2011

I put the following javascript code inline but it doesn't trigger after the updatepanel is done with its postback:

function EndRequestHandler(sender, args) { alert("this should work"); }

View 2 Replies

UserControl Causes Full Postback In UpdatePanel

Mar 24, 2011

I'm having few UpdatePanels on my master page. And then, I have RadTreeViewcontrol on the page, that should cause partial postback each time node is clicked. Everything works fine there. Since I'm using the same tree on some other pages, I moved this functionality to UserControl. Stuff I've done before, so no problem. Moved some code to ascx, created some events. Everything always worked for me well. But not now. RadTreeView is nested inside UserControl, and this control on master page with update panels, see below:

<asp:Panel ID="pnlContentWrapper" runat="server" CssClass="ContentWrapper">
<div id="HeaderBreadCrumb">
<asp:ContentPlaceHolder ID="HeaderBreadCrumbContent" runat="server" />
<div id="HeaderMenu">
<asp:UpdatePanel ID="upnlTreeMenu" runat="server">
<asp:ContentPlaceHolder ID="HeaderMenuContent" runat="server" />
<asp:AsyncPostBackTrigger ControlID="treeProductTree" />
<div id="TreeDiv">
<fp:ProductTree ID="treeProductTree" runat="server" />
<asp:Panel ID="ContentDiv" ClientIDMode="Static" runat="server">
<asp:UpdatePanel ID="upnlTreeContent" runat="server">
<asp:ContentPlaceHolder ID="TreePageContent" runat="server" />
<asp:AsyncPostBackTrigger ControlID="treeProductTree" />
And the user control is really simple:
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="ProductTree.ascx.vb"
Inherits="ProductTree" %>
<telerik:RadTreeView ID="treeProductTree" ClientIDMode="Static" runat="server" EnableDragAndDrop="false"
SkinID="CustomSkin" CssClass="MasterProductTree" DataFieldID="NodeId" DataFieldParentID="NodeParentId"
DataTextField="NodeName" DataValueField="NodeId" />

And some code behind:

Imports Telerik.Web.UI
Public Class ProductTree
Inherits System.Web.UI.UserControl
Public Event NodeExpand As EventHandler(Of ProductTreeNodeExpandEventArgs)
Public Event SelectedNodeChange As EventHandler
Protected Sub ProductTree_NodeExpand(ByVal sender As Object, ByVal e As RadTreeNodeEventArgs) _
Handles treeProductTree.NodeExpand
Dim nodeId As Integer = CInt(e.Node.Value)
Dim evetArgs = New ProductTreeNodeExpandEventArgs(nodeId)
RaiseEvent NodeExpand(Me, evetArgs)
//'some logic
End Sub
Protected Sub ProductTree_OnNodeClick(ByVal sender As Object, ByVal e As RadTreeNodeEventArgs) _
Handles treeProductTree.NodeClick
RaiseEvent SelectedNodeChange(Me, New System.EventArgs())
End Sub
End Class

What I don't know is: why is this causing full postback instead of partial? I suspect that it may have something to do with raising my for SelectedNodeChange, but I don't know how to deal with it other way. I need to let other components know, that node selection changed. How can I improve this to make it work with UpdatePanels?

View 1 Replies

Updatepanel Gives Full Postback Instead Of Asyncpostback

Nov 30, 2010

I have run into what seems to be a very famous problem: My updatepanel fires a full postback instead of a async postback. The normal solution is to give all controls you add dynamically an ID, which I have done, but I still get a full postback instead of my async postback. Here's the code:


<asp:UpdatePanel ID="ItemsUpdatePanel" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="False">
<asp:ListView ID="PlayerItems" runat="server" GroupItemCount="5"
... Listview stuff ...

The interesting part is the C# code behind (method PlayerItems_ItemDataBound), which is like the following:

ImageButton imgBtn = new ImageButton();
imgBtn.ID = "itemBtn";
imgBtn.Width = Unit.Pixel(30);
imgBtn.ImageUrl = "~/Images/Game/Items/" + myItem.ItemImageUrl;
ContextMenu menu = new ContextMenu();
menu.ItemCommand += new CommandEventHandler(menu_ItemCommand);
menu.AutoHide = true;
menu.RolloverColor = Color.Gray;
menu.ID = "MenuMenu";
Panel panel = (Panel)(e.Item.FindControl("ItemPanel"));
AsyncPostBackTrigger trig = new AsyncPostBackTrigger();
trig.ControlID = menu.UniqueID;
trig.EventName = "ItemCommand";

So, I actually add an AsyncPostBackTrigger to the menu, so the ItemCommand event should be registered. What happends when I click an item in this contextmenu, is a full postback happends. I have been trying to play with the ChildrenAsTriggers property without help.

View 2 Replies

AJAX :: Avoiding Postback Using Updatepanel?

Sep 24, 2010

avoiding postback using updatepanel

View 4 Replies

LinkButtons In A Repeater Within An UpdatePanel Are Not Triggering A Postback

Sep 13, 2010

My page contains a Repeater that is loaded with data asynchronously as the data becomes available, using an UpdatePanel to manage the asynchronous requests.The page contains something a little like this:

<asp:UpdatePanel ID="DataUpdatePanel" runat="server">
<asp:Repeater ID="RepeaterBlock" runat="server">
<HeaderTemplate><thead><tr><th>Name</th><th>Status</th><th class="empty"></th></tr></thead></HeaderTemplate>

The problem being that the LinkButton does not appear to trigger a postback of any kind- there is no visible response to clicking on it and putting a break point on the event listener in the codebehind, it is never triggered.
hat the linkbuttons ceased working.

View 2 Replies

Javascript - Retrieve If An Updatepanel Has Made A Postback?

Oct 8, 2010

I can retrieve with JavaScript above the ASP.NET Updatepanel had made a asynchronous postback ?

View 1 Replies

How To Get The Id Of Updatepanel That Triggered The Async Postback On Serverside

Sep 16, 2010

I know about Always vs. Conditional, I just need to know exactly which update panel's data needs to be refreshed (not taken from app tier cache) on the serverside.

View 1 Replies

AJAX :: Forcing Full Postback In UpdatePanel

Apr 19, 2010

I have basically the following structure set up :


I am aware that a FileUpload requires a full page postback. I read the article http://www.4guysfromrolla.com/articles/090209-1.aspx[^]I tried to install a PostBackTrigger programmatically to get a full postback only on the ImageButton1 control. All other postbacks must be partial. (GridView sorting, paging, ...)In code behind I do :


The above code does not seem to install a full postback only for the ImageButton1, so the file upload fails. How can I make this work ?

View 6 Replies

C# - Timer Results In Updatepanel Gives Full Postback

Jan 19, 2011

I have a quite strange situation where I have the following code:

<asp:Timer ID="GameClock" runat="server" Interval="5000" Enabled="true"
<asp:UpdatePanel ID="ItemsUpdatePanel" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false">


<%--<asp:AsyncPostBackTrigger ControlID="GameClock" EventName="Tick" />--%>
<asp:ListView ID="PlayerItems" runat="server" GroupItemCount="7"
<table border="1" cellpadding="2" cellspacing="0" runat="server" id="tblProducts">
<tr runat="server" id="groupPlaceholder">
<td id="Td1" runat="server" style="vertical-align:top; text-align:left; height:100%;">
<div id="category" runat="server">
<asp:Panel ID="ItemPanel" runat="server">
<tr runat="server" id="productRow">
<td runat="server" id="itemPlaceholder"></td>

This gives a quite strange result: Every 5s my whole page gives a full postback. When I comment in (activate) the asyncpostbacktrigger, the updatepanel does not give a full postback. In the PlayerItems_ItemDataBound I have the following code (which, I do think, do not matter):

protected void PlayerItems_ItemDataBound(object sender, ListViewItemEventArgs e)
if (e.Item.ItemType == ListViewItemType.DataItem)
ListViewDataItem dataItem = e.Item as ListViewDataItem;
if (dataItem != null)
BaseItem myItem = dataItem.DataItem as BaseItem;
Panel itemPanel = new Panel();
Literal firstLiteral = new Literal();
firstLiteral.Text += "<div id='smoothmenu1' class='ddsmoothmenu'>";
firstLiteral.Text += "<ul>";
firstLiteral.Text += "<li><img src='Images/Game/Items/" + myItem.ItemImageUrl + "' />";
firstLiteral.Text += "<ul>";
// Add all events bound to item into contextmenu
foreach (Delegate del in myItem.Actions.Items)
Literal firstItLit = new Literal();
firstItLit.Text += "<li>";
MethodInfo methodInfo = del.Method;
string commandName = myItem.ItemId + "|" + methodInfo.Name;
LinkButton btn = new LinkButton();
btn.Text = methodInfo.Name;
btn.Click += new EventHandler(btn_Click);
btn.CommandName = commandName;
Literal secondItLit = new Literal();
secondItLit.Text += "</li>";
Literal btnLiteral = new Literal();
btnLiteral.Text += "</ul>";
btnLiteral.Text += "</li>";
btnLiteral.Text += "</ul>";
btnLiteral.Text += "</div>";
Panel panel = (Panel)(e.Item.FindControl("ItemPanel"));

When I create a NEW updatepanel, ItemsUpdatePanel1, it does not fire a full postback without the timer. I can even start copying items from ItemsUpdatePanel to ItemsUpdatePanel1, and suddenly the full postbacks happen. I tried 2 seperate times, and they started happening at different times.

View 2 Replies

AJAX :: GridView In UpdatePanel With Full Postback

May 13, 2010

I have got the following gridview with a UpdatePanel and approve and save button in each row. How do I create a full postback if approve button is click and asyncPostback if save button is click.

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<asp:PostBackTrigger ControlID="btnApprove" />
<asp:GridView ID="gvApproval" runat="server" CssClass="gridview" BorderColor="#E5E5E5"
Width="98%" AutoGenerateColumns="False" DataKeyNames="NewProcessId" OnRowCommand="gvApproval_RowCommand"
OnRowDataBound="gvApproval_RowDataBound" OnRowEditing="gvApproval_RowEditing">
<asp:TemplateField Visible="False">
<asp:Label ID="lblApprovalId" runat="server" Text='<%# Bind("ApprovalId") %>' Width="1px"></asp:Label>
<asp:TemplateField HeaderText="Comment">
<ItemStyle Width="80%" Wrap="True" />
<asp:Label ID="lblComment" runat="server" Text='<%# Eval("Comment").ToString().Replace("
", "<br />") %>'></asp:Label>
<asp:TextBox ID="txtApprovalComment" runat="server" CssClass="textMessageBox" TextMode="MultiLine"
Width="98%" Visible="false"></asp:TextBox>
<asp:RequiredFieldValidator ID="rfvApprovalComment" runat="server" ControlToValidate="txtApprovalComment"
Display="Dynamic" CssClass="textErrorMessageNormal" ErrorMessage="Comment is required before approval"
ValidationGroup="Approve"></asp:RequiredFieldValidator><br />
<asp:ImageButton ID="btnApprove" runat="server" CssClass="spbutton" Visible="false"
ImageUrl="~/Images/ButtonApprove.gif" ValidationGroup="Approve" CommandName="Approve">
<asp:ImageButton ID="btnSave" runat="server" CssClass="spbutton" Visible="false"
ImageUrl="~/Images/ButtonSave.gif" ValidationGroup="Save" CommandName="Save">
<PagerStyle CssClass="pager" />
<HeaderStyle CssClass="gridtableHeading" Wrap="False" />
<AlternatingRowStyle CssClass="alternateRow" />

View 2 Replies

AJAX :: UpdatePanel Is Not Working - It Always Postback Instead Of Callback?

Jan 21, 2010

I have updatePanel in my ASP.NET 2.0 (migrated from ASP.NET 1.1) web app. It doesn't work as it always postback instead of callback. I already set<xhtmlConformance mode="Transitional" /> but still not working. Previously, it just working.


View 5 Replies

Determining Which Button Caused The Postback In An UpdatePanel?

Oct 18, 2010

In Page_Load, Request["__EVENTTARGET"] is an empty string.IS there some way I can find out which button triggered the postback before hitting the buttons event handler

View 2 Replies

Ajax UpdatePanel Controls Full Postback

Mar 7, 2011

I have a webform which has an updatepanel with a combobox, add button, delete button and a table. The functiion of the two buttons is to add or delete table rows. However, the table is getting cleared everytime the combobox item is selected. Is there anotherway of retaining the table contents?The code for the updatepanel is:

<asp:UpdatePanel ID="UpdatePanelTreatment" runat="server" UpdateMode="Conditional">
<asp:PostbackTrigger ControlID="cboTreatment" />
asp:PostbackTrigger ControlID="btnAdd" />

View 3 Replies

AJAX :: Scrollbar Is Reset By Updatepanel Postback - How To Fix It

Jul 20, 2010

I have an Usercontrol which has a update panel that being postback by a timer, and it is nested in a parent page which has its own update panel. Every time that the update panel in UserControl cause a postback to server my main page's scrollbar being reset to top or buttom of the page. I enabled viewstate of parent page but nothing, and when enable parent page's MaintainScrollPOsitionOnPOstback it cause a problem for Usercontrol updatepanel postback !

View 2 Replies

.net : Exclude Control In Updatepanel From Doing Async Postback

Dec 8, 2010

I have placed a user control inside update panel after doing asynchronous postback of page associated js file of that user control is not working so that is there any method to exclude a control from updatepanel in another word i don't want to post that user control.

<asp:UpdatePanel ID="upPnlAnswerList" runat="server">
// another code that required to placed inside updatepanel
<div id="miancontainer" class="containerr"
<klmsuc:Share ID="shareUserControl" runat="server" />

View 1 Replies

Copyrights 2005-15 www.BigResource.com, All rights reserved