Losing custom editor header changes after the first opening

Hello,

We've encountered a problem with our custom editor.
Our Syncfusion version is v18.3.0.44

So here is the problem.
We are manually changing the header through the PopupOpen event like this.

function onPopupOpen(args) {

        console.log(args);

        if (args.type === "Editor") {

            let editor = args.element.ej2_instances[0];

              editor.header = '<div class="e-title-text">Test</div>';

            editor.buttons = [ {buttonModel: {content: 'Close', cssClass: 'btn btn-primary'}, click: editorClose} ];

            editor.dataBind();

        }

    }


When we open the editor the first time it looks like this.




The second time it looks like this.




For some reason that we haven't found, the header reverts back to the original header.


Thank tou for your help in advance



1 Reply 1 reply marked as answer

RV Ravikumar Venkatesan Syncfusion Team November 2, 2020 12:35 PM UTC

Hi Tommy, 

Greetings from Syncfusion support. 

We have validated your reported query at our end. Based on your query we suspect that you need to customize the schedule editor window header text. We suggest you to use the L10n.load method to customize the schedule editor window texts like the below code. We have prepared a sample for your reference and it can be available below. 

[index.cshtml] 
<script> 
    var L10n = ej.base.L10n; 
    L10n.load({ 
        "en-US": { 
            "schedule": { 
                "newEvent": "New Appointment", 
                "editEvent": "Edit Appointment" 
            } 
        } 
    }); 
</script> 


Kindly try the above sample and get back to us if you need any further assistance. 

Regards, 
Ravikumar Venkatesan 


Marked as answer
Loader.
Up arrow icon