Editor with UpdatePanel

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
7/28/2008 4:51:02 AM
Gravatar
Total Posts 6

Editor with UpdatePanel

Hi Joe,

I would like to ask about editor with UpdatePanel.

I'm writing a module which contains editors. Initially, i implemented the module without UpdatePanel and things go fine. But after putting the editor inside an UpdatePanel, the first load is normal which displays the toolbar and the text area. The second load involves a Update() of UpdatePanel. After this update of UpdatePanel, the toolbar and the text area disappear. I've inspected the rendered HTML with Firebug and found that the DIV of editor (configured to use FCKEditor) and its children are rendered. In the first and second loading, the XML responses from EditorStyles.ashx are the same. The behavior is the same if TinyMCE is configured and it is the same in both IE7 and Firefox.

Do you have any hints for me to trace? Where should i start looking at? the generic EditorControl or the specific XXXAdapter?

Thanks a lot~~ ^_^

cheers,
alex

7/28/2008 5:49:21 AM
Gravatar
Total Posts 18439

Re: Editor with UpdatePanel

Hi Alex,

My suggestion is to investigate both the adapter and the FCKeditor .NET control. Our .NET wrapper contol for FCKeditor is based on an older version of the one included with FCKeditor. I noticed recently an announcement on the FCKeditor site about a new version of their .NET wrapper that fixes some issues with UpdatePanel. Perhaps by looking at their latest version of .NET integration you can find the parts we need to backport to our version. I know I have fixed some things over the years that are probably still not fixed in their version so I'm not sure about just switching to theirs, its best if we can just find what they did to fix the UpdatePanel problem and do the same in our version.

Best,

Joe

2/10/2010 4:50:37 PM
Gravatar
Total Posts 17

Re: Editor with UpdatePanel

This still happens for me.

Do you know if there was ever a solution to this?

 

thanks

2/11/2010 12:45:35 PM
Gravatar
Total Posts 18439

Re: Editor with UpdatePanel

Hi,

No the current editors do not work in UpdatePanel, however, as discussed on this thread, I'm updating to the newer version of AjaxControlToolkit and it has an editor that does work in UpdatePanel, so it can be used in those situations.

Best,

Joe

2/11/2010 1:00:20 PM
Gravatar
Total Posts 17

Re: Editor with UpdatePanel

great news! thanks!

2/11/2010 1:08:20 PM
Gravatar
Total Posts 18439

Re: Editor with UpdatePanel

I did kind of a workaround for this issue in my latest release of Form Wizard Pro (as seen on demo.mojoportal.com). When I made the instruction block question type so that additional instructions could be added anywhere among the questions, I wanted to allow the user to be able to use html editor to edit the instructions, but it was inside updatepanel and this did not work. So my solution was to use a GreyBoxDialog and popup the editor in a new window, and then I used a callback javascript from the dialog to refresh the the update panel after editing is complete so it would reload the data saved separately from the dialog page.

So that is another solution that can be used, but I have a feeling this editor in the toolkit will come in very handy.

Best,

Joe

2/21/2010 8:26:58 AM
Gravatar
Total Posts 18439

Re: Editor with UpdatePanel

Sorry folks, but I had to revert back to the older version of AjaxControlToolkit because the new versions have a bug in ReorderList control

http://www.codeplex.com/AjaxControlToolkit/WorkItem/View.aspx?WorkItemId=17574

and this resulted in the same bug occurring in my Form Wizard Pro product. I will have to see about updating again after this bug is fixed.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.