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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

145872 Jul 11,2019 04:52 PM UTC Jul 19,2019 03:20 AM UTC Vue 10
loading
Tags: Schedule
Thin D
Asked On July 11, 2019 04:52 PM UTC

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

Vinitha Devi Murugan [Syncfusion]
Replied On 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.

Thin D
Replied On 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

Thin D
Replied On 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.



Karthigeyan Krishnamurthi [Syncfusion]
Replied On 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 
 
 


Thin D
Replied On July 15, 2019 03:36 PM UTC

Great, thanks for your help.

Regards,

Karthigeyan Krishnamurthi [Syncfusion]
Replied On July 16, 2019 04:27 AM UTC

Most welcome 😊 


Thin D
Replied On 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

Karthigeyan Krishnamurthi [Syncfusion]
Replied On 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 


Thin D
Replied On July 18, 2019 04:49 AM UTC

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

Karthigeyan Krishnamurthi [Syncfusion]
Replied On July 19, 2019 03:20 AM UTC

Most welcome 😊 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon