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.
Unfortunately, activation email could not send to your email. Please try again.

Custom display of Appointment

Thread ID:

Created:

Updated:

Platform:

Replies:

128332 Jan 15,2017 06:22 AM Jan 16,2017 07:42 AM Windows Forms 1
loading
Tags: ScheduleControl
Dario Fraschini
Asked On January 15, 2017 06:22 AM

Hello,
I have a new problem: I want to display the appointment in the grid of scheduleControl, adding text from a new extra field I created.
I tried to implement this in the event "ParseDisplayItem" of scheduleControl, trying to modify the e.format property and the e.formattedText property.
Maybe this event is fired BEFORE the rendering and not AFTER? I just want to put some extra text in the rendered text.

Thank You.
Dario.

Amal Raj Umapathy Selvam [Syncfusion]
Replied On January 16, 2017 07:42 AM

Hi Dario, 

Thanks for using Syncfusion products. 

As you have updated, display text of the appointments can be customized through ParseDisplayItem event. But since as the customization in the event has to be notified, the e.Handled must be enabled and also the event must be subscribed before initializing appointment providers to the ScheduleControl. Please make use of the below code, 

Code Example 
//Event subscription. 
this.scheduleControl1.ParseDisplayItem += new ParseDisplayItemEventHandler(scheduleControl1_ParseDisplayItem); 

void scheduleControl1_ParseDisplayItem(object sender, ParseDisplayItemEventArgs e) 
    e.FormattedText = string.Format("{0} ", e.Item.Subject); 
    e.FormattedText += "Custom Text"
    //Handled must be true to change the formatted text. 
    e.Handled = true; 

Sample Link 

Please let us know, if we have misunderstood your query. 

Regards, 
Amal Raj U. 


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.

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.

;