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

Cannot get datagrid instance in the actionBegin event (Vuejs 3)

Hello , I am trying to get the datagrid instance in the actionBegin event to show or hide columns but it gives me error in the console :

Uncaught TypeError: butRef.value.getColumns is not a function

Syncfusion version : 21.1.38

kindly download the attachment project 

note : I am using Nuxt 3


2 Replies 1 reply marked as answer

AS Ayman Shokry April 14, 2023 11:44 PM UTC

Sorry , I found out the reason of this error It is my own fault I set ref property of the buttonTemplate to the same ref value of the datagrid , thanks


Marked as answer

SG Suganya Gopinath Syncfusion Team April 17, 2023 07:29 AM UTC

Ayman, 

Thanks for sharing the status of the issue. Please get back to us for further assistance.



Loader.
Live Chat Icon For mobile
Up arrow icon