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

Data Binding in scheduler

Thread ID:

Created:

Updated:

Platform:

Replies:

146956 Aug 26,2019 11:48 PM UTC Aug 28,2019 10:05 AM UTC Angular - EJ 2 1
loading
Tags: Schedule
amrutha
Asked On August 26, 2019 11:48 PM UTC

Hi Team,

In my current application , I do have fields which needs the user interaction and other fields for application purpose for each of the appointment.

So , on creating newEvent, I am binding  the other fields with an object and storing it

// Appointment  Bound Data 
      Id: 6,
StartTime: new Date(2018, 3, 5, 6, 30),
EndTime: new Date(2018, 3, 5, 7, 30),
IsAllDay: false,
employeeId: 2,
clientId: 1,

// Data is being added to appointment in addEvent before adding to the scheduler
         service: {
serviceId: 1,
serviceName : 'Mens Hair Cut',
duration: 10,
price: 125
},
status: 'Scheduled',
        clientName:'dfdsg'

But when updating the data
public editEvent(e) {
const eventData: { [key: string]: object } = this.scheduleObj.eventWindow.getObjectFromFormData('e-schedule-dialog');
}

This eventData gives only the fields associated with appointment form and newly added (status,clientName) properties disappear as they are
not part of this.scheduleObj.eventWindow;

How to bound the object to store all the data including all additional fields? Could you please let me know?

I donot want to create a separate hidden fields to store scheduler and all.

Thanks in Advance

Regards,
Amrutha


Hareesh Balasubramanian [Syncfusion]
Replied On August 28, 2019 10:05 AM UTC

Hi Amrutha, 

Greetings from Syncfusion Support. 

Kindly refer the following UG link for adding addition fields in event collections, 

Note: We provided the ‘e-field’ support only for limited JS2 Syncfusion components like datepicker, datetimepicker, dropdownlist, multiselect, checkbox and input components . For other components, you have to handle the ‘getting and setting the values to those fields’ in sample end using actionBegin and popupOpen event. 

Regards, 
Hareesh 


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