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

Cell click event.

Thread ID:

Created:

Updated:

Platform:

Replies:

148547 Oct 24,2019 10:44 AM UTC Oct 25,2019 07:50 AM UTC Blazor 1
loading
Tags: Calendar
j
Asked On October 24, 2019 10:44 AM UTC

Is there a way to capture the cell click? Also I want to popup my own dialog or modal instead the default one because there are lots of data I want to show.

Nevitha Ravi [Syncfusion]
Replied On October 25, 2019 07:50 AM UTC

Dear customer, 

Greetings from Syncfusion Support. 

Yes, we can use OnCellClick event to capture the cell click. Please find the code snippet for the same. 

@using Syncfusion.EJ2.Blazor.Schedule 
 
    <EjsSchedule TValue="AppointmentData" Width="100%" Height="650px" SelectedDate="@(new DateTime(2019, 1, 1))"> 
       <ScheduleEvents TValue="AppointmentData" OnCellClick="OnCellClick"></ScheduleEvents> 
    </EjsSchedule> 
 
@code{ 
    public void OnCellClick(CellClickEventArgs args) 
    { 
        // do ypur customization here 
    } 
    public class AppointmentData 
    { 
        public int Id { get; set; } 
        public string Subject { get; set; } 
        public string Location { get; set; } 
        public DateTime StartTime { get; set; } 
        public DateTime EndTime { get; set; } 
        public string Description { get; set; } 
        public bool IsAllDay { get; set; } 
        public string RecurrenceRule { get; set; } 
        public string RecurrenceException { get; set; } 
        public Nullable<int> RecurrenceID { get; set; } 
    } 
} 


We can show custom fields and customize the editor window using EditorTemplate option. Please find the online demo in the following link. 


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

Regards, 
Nevitha.

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