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

RecurrenceEditor does not work in template editor vue ( not save)

Hello there,

I try to make template editor in  Vue, I need your help:
1. Time Zone component, I do not know the correct timezone component
2. I can not save with current setting for RecurrenceEditor

Please help and take a look my sample in attachment.

Thanks,

Attachment: Sample_9e230df4.zip

10 Replies

VD Vinitha Devi Murugan Syncfusion Team July 12, 2019 01:44 PM UTC


 
Greetings from Syncfusion. 
 
Please find the below sample for all your queries. 
 
 
Q1: Please use following code in custom-editor.vue file to render the timezone fields in editor window. 
 
     <!--Render this tr for as a hidden field for timezone--> 
             <tr id='timeZoneHiddenField' style='display:none'> 
                <td colspan="4"> 
                <ejs-dropdownlist id='Timezone' class="e-field" data-name = 'Timezone'  name='Timezone' value='true' :dataSource='timeData'></ejs-dropdownlist> 
               </td> 
            </tr>   
            <tr> 
                <td class="e-textlabel">StartTimeZone</td> 
                <td colspan="4"> 
                      <!--Render the dropdown for StartTimeZone component--> 
                     <ejs-dropdownlist id='StartTimezone' class="e-field"  width='400px' data-name = 'StartTimezone' name='StartTimezone' :fields='fields' :dataSource='timezoneData'></ejs-dropdownlist> 
                </td> 
               
            </tr>          
             <tr> 
                <td class="e-textlabel">EndTimeZone</td> 
                <td colspan="4"> 
                    <!--Render the dropdown for EndTimeZone component--> 
                     <ejs-dropdownlist id='EndTimezone' class="e-field" width='400px' data-name = 'EndTimezone' name='EndTimezone' :fields='fields'  :dataSource='timezoneData'></ejs-dropdownlist> 
                </td> 
            </tr>    
 
 
Q2: We achieved your requirement by making use of popupOpen event and same can be available in above sample. 
 
onPopupOpen: function(args){ 
      if (args.type === 'Editor') { 
       // For recurrence working need to add below lines 
        var recObj = args.element.querySelector('#RecurrenceEditor').ej2_instances[0] 
         this.$refs.ScheduleObj.ej2Instances.eventWindow.recurrenceEditor = recObj; 
        } 
    } 
 
 
Kindly try with the above sample and let us know if you need any further assistance on this.  

Regards, 
M.Vinitha devi.


TD Thin D July 12, 2019 04:03 PM UTC

Hello M.Vinitha devi.,
Thanks for prompt reply.

I used your sample provided,  I had a problem when choose a timezone, many Recurrence events do not have timezone, please the recording video for more detail


Thanks,
Thin D.

Attachment: 20190712_225534_ff0c7275.zip


TD Thin D July 14, 2019 01:01 PM UTC

I would like to add more a question: How to apply a template when opening the QuickInfo?



Thanks,

Thin D.




KK Karthigeyan Krishnamurthi Syncfusion Team July 15, 2019 10:27 AM UTC

Hi Thin, 
 
Thanks for the update. 
 
Please upgrade to latest version 17.2.34 to overcome the timezone case and for the same below sample is prepared with quick pop customization for your reference. 
 
Regards, 
Karthi 
 
 



TD Thin D July 15, 2019 03:36 PM UTC

Great, thanks for your help.

Regards,


KK Karthigeyan Krishnamurthi Syncfusion Team July 16, 2019 04:27 AM UTC

Most welcome 😊 



TD Thin D July 16, 2019 03:56 PM UTC

Hello Syncfusion support,

My appointment application does not need end-user to input the EndTime, instead of the EndTime will be added 20 minutes based on the StartTime.

Please let me how can achieve it.

Thanks,

Attachment: Schedule_13ab6e67.zip


KK Karthigeyan Krishnamurthi Syncfusion Team July 17, 2019 11:41 AM UTC

Hi Thin,  
  
Thanks for the update.  
 
We have prepared the below sample for your requirement using actionBegin event. 
 
onActionBegin: function(args) { 
      let scheduleObj = this.$refs.ScheduleObj; 
      if (args.requestType === "eventCreate" || args.requestType === "eventChange") { 
        let data = (args.requestType === "eventCreate") ? args.data[0]: args.data; 
        var endDate = new Date(data.StartTime); 
        endDate.setMinutes(endDate.getMinutes() + 20); 
        data.EndTime = endDate; 
    } 
 
Regards, 
Karthi 



TD Thin D July 18, 2019 04:49 AM UTC

That worked!  Thank you so much for the prompt reply.


KK Karthigeyan Krishnamurthi Syncfusion Team July 19, 2019 03:20 AM UTC

Most welcome 😊 


Loader.
Live Chat Icon For mobile
Up arrow icon