New event- cellClicked
Hi,
Could you add new event cellClicked when a user clicks on the cell?
Best regards,
Tomasz Tomczykiewicz
SIGN IN To post a reply.
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.
|
<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
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.
Regards,
Pooja Priya K
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
-
TT Tomasz Tomczykiewicz
- Jul 4, 2019 12:49 PM UTC
- Jul 8, 2019 01:01 PM UTC