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

Custom display of Appointment

Thread ID:





128332 Jan 15,2017 11:22 AM UTC Jan 16,2017 12:42 PM UTC WinForms 1
Tags: ScheduleControl
Dario Fraschini
Asked On January 15, 2017 11:22 AM UTC

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.

Amal Raj Umapathy Selvam [Syncfusion]
Replied On January 16, 2017 12:42 PM UTC

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. 

Amal Raj U. 


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