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. Image for the cookie policy date
close icon

Get cell index of scheduled events

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

1 Reply

KK Karthigeyan Krishnamurthi Syncfusion Team 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 


Loader.
Live Chat Icon For mobile
Up arrow icon