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

New event- cellClicked


Could you add new event cellClicked when a user clicks on the cell?

Best regards,
Tomasz Tomczykiewicz

3 Replies

JA Jesus Arockia Sankaran S Syncfusion Team July 5, 2019 11:48 AM UTC

Hi Tomasz, 
In Gantt cell selection, we have two client-side events like cellSelecting  & cellSelected events.  To enable cell selection, set  selectionSettings.mode as  Cell or Both.  

Please find the code example below. 
        <ejs-gantt ref='gantt' :dataSource="data" id="GanttContainer" :cellSelected="cellSelected" :cellSelecting="cellSelecting"> 
    data: function () { 
        return { 
          mode: 'Both', 
      cellSelected:function (args) { 
     cellSelecting:function (args) { 
Please find the below documentation link to find the available properties, events, methods of the Gantt control. 
Jesus Arockia Sankaran S 

TT Tomasz Tomczykiewicz July 5, 2019 12:27 PM UTC

I know about these events. But I want to execute an action if a user clicks on a cell. The cell/row is selected and then the user clicks on the same cell and the event cellDeselecting and cellDeselected events are fired (not cellSelecting/cellSelected which is obvious). This requires implementation also in cellDeselecting/cellDeselected.

At least, could you add target html element in cellSelecting/cellSelected and cellDeselecting/cellDeselected? I think that rowSelecting has it.

PP Pooja Priya Krishna Moorthy Syncfusion Team July 8, 2019 01:01 PM UTC

Hi Tomasz, 
We already had a property to get target elements in cell selection and cell de-selection. In cell selection, we will get the target element in the currentCell property of cellSelecting/cellSelected event arguments. While de-selecting, we will get the target element in cell property of cellDeselecting/cellDeselected event arguments. 
Please get back to us, if you require further assistance on this. 
Pooja Priya K 

Live Chat Icon For mobile
Up arrow icon