Update Appointment Color - Single click popup

when updating Appt. everything update in the Calendar expect Appointment Color, i have to refresh the whole page to update( it suppose to update when i change the status )

Another QUESTION



in this Screen AS8 suppose to be translated using $t(Status)
how to handle it, i tried to use custom template but i couldnt make it works


Another QUESTION

when i click a single click on calendar it opens


i want to edit this field to become DropDownList with a specific list


3 Replies 1 reply marked as answer

RV Ravikumar Venkatesan Syncfusion Team April 8, 2021 06:49 AM UTC

Hi Hani, 

Greetings from Syncfusion support. 

When updating Appt. everything updates in the Calendar except Appointment Color 
We have validated your above query at our end and achieved it with help of the popupClose event of Schedule with the below code. 

[App.vue] 
    onPopupClose: function (args) { 
      if (args.type === "Editor" && args.data) { 
        args.data.Translate = "AS8"; 
        switch (args.data.Status) { 
          case "new": 
            args.data.Color = "#ffe000"; 
            break; 
          case "confirmed": 
            args.data.Color = "#25b800"; 
            break; 
          case "cancelled": 
            args.data.Color = "#e40404"; 
            break; 
          default: 
            break; 
        } 
      } 
    }, 

AS8 supposed to be translated using $t(Status) 
This can be achieved with the help of eventTemplate with help of the code shown below. 

[App.vue] 
var monthTempVue = Vue.component("monthTemp", { 
  template: 
    '<div class="template-wrapper" :style="{background: data.Color}">' + 
    '<div class="time" :style="{background: data.Color}">{{getTimeString(data.StartTime)}}</div>' + 
    '<div class="subject" :style="{background: data.Color}">{{data.Subject}}</div>' + 
    '<div class="translate" :style="{background: data.Color}">{{getTranslatedString(data.Translate)}}</div></div>', 
  data() { 
    return { 
      data: {}, 
    }; 
  }, 
  methods: { 
    getTimeString: function (value) { 
      return instance.formatDate(value, { skeleton: "hm" }); 
    }, 
    getTranslatedString: function (value) { 
      return "Trans - " + value; 
    }, 
  }, 
}); 

I want to edit this field to become DropDownList with a specific list 
We can achieve the above requirement with the help of the quickInfoTemplates property of the Schedule for the same, we have prepared a sample for your reference which can be available from the below link. 


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

Regards, 
Ravikumar Venkatesan 


Marked as answer

HA Hani April 8, 2021 09:22 AM UTC

Thx for your support, i will set my status for each task to confirm its done, and HELP others when see this thread

1) Status Color DONE


NR Nevitha Ravi Syncfusion Team April 9, 2021 06:04 AM UTC

Hi Hani, 

You are most welcome..! please get back to us if you need any further assistance. 

Regards, 
Nevitha 


Loader.
Up arrow icon