How to watch grid setoption method execution completion in vue

1 Answer 112 Views
Grid wrapper
yingting
Top achievements
Rank 1
yingting asked on 22 May 2022, 01:52 PM

Hi,

We are currently developing the Kendo Grid Wrapper Component with Vue3.0 compositon API and typescript  but we have encountered a problem.The problem is  that when I enable some configuations such as editable or groupable will trigger setoptipn method and redraw the grid,it causes the toolbar custom button click event failure.I need to rebind the custom button click event after grid redraw,is there any way to watch grid setoption method execution completion or how to make custom button events not invalid?

Thank you very much and greetings

1 Answer, 1 is accepted

Sort by
0
Petar
Telerik team
answered on 23 May 2022, 09:10 AM

Hi Yingting,

Based on the available details, what I can recommend you is to try to rebind the custom events when the dataBound event is triggered. The suggested event is triggered every time a data operation in the Grid is completed. 

Try the suggested approach and let me know if it helps you achieve what you need in your application. If the dataBound event doesn't resolve the experienced issue, to help you, we will need a runnable example in which the discussed scenario can be replicated. 

Regards,
Petar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

yingting
Top achievements
Rank 1
commented on 27 May 2022, 12:55 AM

Hi Petar,
Thank you for your reply,I tried your method and it works.
Tags
Grid wrapper
Asked by
yingting
Top achievements
Rank 1
Answers by
Petar
Telerik team
Share this question
or