We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Dialog template instantiatiates TinyMCE only first time

Thread ID:

Created:

Updated:

Platform:

Replies:

125084 Jul 20,2016 01:45 PM UTC Jul 26,2016 04:33 AM UTC JavaScript 3
loading
Tags: ejGrid
Wouter
Asked On July 20, 2016 01:45 PM UTC

See example: http://jsplayground.syncfusion.com/plebdrul
Double click on a row shows a dialog with a template for editing, however this works only one time. Canceling and opening again doesnt show the TinyMCE control.

Jayaprakash Kamaraj [Syncfusion]
Replied On July 21, 2016 01:44 PM UTC

Hi Wouter, 

Thank you for contacting Syncfusion support. 

In Grid, while editing we have rendered template in dialogtemplate mode. In your sample you have rendered tinymce control in textarea but that didn’t removed while perform save or cancel operation grid. So, while perform edit operation in second time tinymce control not append in dialog template. To overcome this problem we suggest to remove or destroy tinymce control  when args.requestType as save or cancel in actionComplete event. Please refer to the below code example and sample. 

 
$(function () { 
            $("#Grid").ejGrid({ 
                
                actionComplete: "complete", 
                .. 
 
        
function complete(args) { 
              if(args.requestType == "save" || args.requestType == "cancel") 
                  tinyMCE.remove(); 
         .. 
 
         } 
        } 


Regards, 

Jayaprakash K. 


Wouter
Replied On July 22, 2016 10:24 AM UTC

That works! Thank you for the support.

Jayaprakash Kamaraj [Syncfusion]
Replied On July 26, 2016 04:33 AM UTC

Hi Wouter,  
 
We are happy that the provided suggestion helped you.  
Please get back to us if you need any further assistance.   
 
Regards,  
 
Jayaprakash K. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;