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. Image for the cookie policy date

Dialog template instantiatiates TinyMCE only first time

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.

3 Replies

JK Jayaprakash Kamaraj Syncfusion Team 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. 



WO Wouter July 22, 2016 10:24 AM UTC

That works! Thank you for the support.


JK Jayaprakash Kamaraj Syncfusion Team 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. 


Loader.
Live Chat Icon For mobile
Up arrow icon