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

How to clear row selection

Hi,
I would like to prgramatically clear the row selection in the Gantt Chart.  ive tried using the clearSelection() function but It doesnt seem to exist.  refer here: https://ej2.syncfusion.com/vue/documentation/api/gantt/selection/#clearselection

Can somone kindly provide an example of how to use this function? 

Thank you
Adam

3 Replies

GA Gurunathan A Syncfusion Team September 16, 2019 06:10 AM UTC

Hi Adam, 

Thanks for contacting Syncfusion. 

We can clear the selection of rows or cells by using the method clearSelection, please find the below code example for how to use this in application. 

<button v-on:click="clearSelection">Clear Selection</button> 
 
export default { 
//... 
  methods: { 
    clearSelection: function(event) { 
      this.$refs.gantt.ej2Instances.selectionModule.clearSelection(); 
    } 
  } 
}; 
 

Please find the below sample link. 

Thanks, 
Gurunathan 



AM Adam Moroff September 16, 2019 10:51 AM UTC

Thank you kindly. 


GA Gurunathan A Syncfusion Team September 16, 2019 11:10 AM UTC

Hi Adam, 
  
We are happy to assist you.  

Regards, 
Gurunathan 


Loader.
Live Chat Icon For mobile
Up arrow icon