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

Get cell index of scheduled events

Thread ID:

Created:

Updated:

Platform:

Replies:

145095 Jun 6,2019 11:31 AM UTC Jun 7,2019 07:13 AM UTC React - EJ 2 1
loading
Tags: Schedule
Sonam Diwate
Asked On June 6, 2019 11:31 AM UTC

In Scheduler, how to get Cell index of specific scheduled events.

Karthigeyan Krishnamurthi [Syncfusion]
Replied On June 7, 2019 07:13 AM UTC

Hi Sonam, 
 
Syncfusion greetings. 
 
We have prepared the below sample to display the selected event row and cell index. 
 
onEventClick(args) { 
    var cellHeight = document.querySelector('.e-work-cells').offsetHeight; 
    var eventTop = args.element.style.top; 
    this.RowIndex = parseInt(eventTop, 10) / cellHeight; 
    var dataId = args.element.attributes[1].value; 
    this.cellIndex = document.querySelector('div[data-id="' + dataId + '"').closest('td').cellIndex; 
    document.querySelector('.row').innerHTML = 'Row Index:' + this.RowIndex; 
    document.querySelector('.cell').innerHTML = 'Cell Index:' + this.cellIndex; 
  } 
 
Regards, 
Karthi 


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