webtextEditor and MultiView control

5 replies. Last post: February 27, 2014 11:22 PM by Bernard Xiang
Tags :
  • (None)
John BoninMember

Hi,

I am using the webtextEditor with an ASP Multiview control.  When I enter information into the text Editor and move to another view the contents of the Text editor are deleted on postback.  How can I keep the contents of the text editor to remain through all views until I write the contents to the database, standard web control like textbox maintain their contents?  I've tried to enable viewstate but didn't help.

 I've added a sample that shows the problem.  Run the page, enter text in the editor, click next button to go to next view, the contents of the editor in is the text box, now click Next again and notice that the textbox is empty.  Click back twice to return to the 1st view and the editor is empty.

 

 

Thanks

1 attachment

All Replies

Hi John,

We will investigate this matter further. I'll contact you if I found workaround or fix regarding this issue.


Regards,
Bernard

Do you have any answer to this.  It's been about 1 1/2 years since hearing from you.  I am still having this problem.  The contents of the webTextEditor does not remain when used within a Multiview control.  The sample project uploaded before will show this problem.  I am using the latest version of TextEditor, VS 2008 and ASP .NET 4.0.  I am also using jQuery 1.9.x.

Hi John, 

Sorry for our late responses. I think when you're using MultiView control, it will do FullPostback on your page. In first Postback the value will still remain because it still persist our WebTextEditor object in your server side then it will reinitialize our WebTextEditor. After initialize our WebTextEditor will clear its value so it won't have value on second Postback. Perhaps to achieve this scenario, you could save this value on first postback in variable in server side. Then you could set the value in WebTextEditor when PostBack. Hope this helps.

Regards,
Bernard

No it really doesn't help.  In my case, I have multiple TextEditors in different views of the Multiview, I can save info into the viewstate and restore it but not very elegant!  I also use an UpdatePanel, which when a postback occurs, all the icons on the text editor control no longer works, so it appears that all the javascript control unbinds, making the Text Editor useless in this situation. 
Hi John, 

Is there any possibilities for you to use our WebTab? I think it should be more easier to use CSS style to achieve this scenario like display none or visibility hidden. It seems there are some API in .NET life cycle that cause our WebTextEditor to re-initialize. Also for UpdatePanel scenario, is there any steps that you're using to replicate this problem in your local end? Look forward to hear any feedback from you so I can help you further.

Regards,
Bernard
All times are GMT -5. The time now is 1:55 AM.
Previous Next