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

How to customize MonthAgenda Cell?

Thread ID:

Created:

Updated:

Platform:

Replies:

145164 Jun 10,2019 09:33 PM UTC Jun 12,2019 03:23 AM UTC Angular - EJ 2 3
loading
Tags: Schedule
Garry Wu
Asked On June 10, 2019 09:33 PM UTC

Hi,

Could you please provide some samples to customize the cell in agenda list? For example, I want to have different buttons between title and time, the button is based on the data.  

Thanks,

Attachment: 20190610143134_a1d40624.zip

Karthigeyan Krishnamurthi [Syncfusion]
Replied On June 11, 2019 10:22 AM UTC

Hi Garry, 
 
Syncfusion greetings. 
 
We have prepared the below sample to display the custom button in Agenda view based on event custom field Export using template option. 
 
{ 
        Id: 2, 
        Subject: 'Thule Air Crash Report', 
        Location: 'Newyork City', 
        Export: "Print", 
        StartTime: new Date(2019, 0, 7, 12, 0), 
        EndTime: new Date(2019, 0, 7, 14, 0), 
        CategoryColor: '#357cd2' 
    } 
<e-view option="Agenda"> 
          <ng-template #eventTemplate let-data> 
            <ng-container ngTemplateOutletContext]="{data:data}"> 
              <div class="temp"> 
                <div> 
                  <div class="subject">{{data.Subject}}</div> 
                  <div class="action"><span class="e-icons {{data.Export}}"></span><span class="{{data.Export}}" style=""> {{data.Export}}</span></div> 
                
                <div class="location">{{data.Location}}</div> 
                <div class="time" >Time: {{getTimeString(data.StartTime)}} - {{getTimeString(data.EndTime)}}</div> 
            </div> 
        </div></ng-container> 
        </ng-template>         
      </e-view> 
.e-icons.Excel:before{ 
                content: '\e242'; 
                color:green; 
            } 
   .e-icons.Print:before{ 
                content: '\e813'; 
                color:black; 
            } 
 
Regards, 
Karthi 


Garry Wu
Replied On June 11, 2019 06:28 PM UTC

Thank you for your quick response. It works great.

Karthigeyan Krishnamurthi [Syncfusion]
Replied On June 12, 2019 03:23 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