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

New event- cellClicked

Thread ID:

Created:

Updated:

Platform:

Replies:

145705 Jul 4,2019 12:49 PM UTC Jul 8,2019 01:01 PM UTC Vue 3
loading
Tags: Gantt Chart
Tomasz Tomczykiewicz
Asked On July 4, 2019 12:49 PM UTC

Hi,

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

Best regards,
Tomasz Tomczykiewicz

Jesus Arockia Sankaran S [Syncfusion]
Replied On 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. 
 
<template> 
    <div> 
        <ejs-gantt ref='gantt' :dataSource="data" id="GanttContainer" :cellSelected="cellSelected" :cellSelecting="cellSelecting"> 
            //... 
        </ejs-gantt> 
    </div> 
</template> 
<script> 
    //... 
    data: function () { 
        return { 
          //... 
        selectionSettings:{ 
          mode: 'Both', 
         } 
      }; 
    }, 
 
    methods:{ 
      cellSelected:function (args) { 
         
      }, 
     cellSelecting:function (args) { 
 
     } 
  } 
 
  }; 
</script> 
Please find the below documentation link to find the available properties, events, methods of the Gantt control. 
 
Regards, 
Jesus Arockia Sankaran S 


Tomasz Tomczykiewicz
Replied On 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.

Pooja Priya Krishna Moorthy [Syncfusion]
Replied On 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. 
 
Regards, 
Pooja Priya K 
 


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