This is a migrated thread and some comments may be shown as answers.

VUE DataSource set destroy as a function not working

1 Answer 11 Views
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 27 Oct 2018, 04:57 AM

I set destroy as a function, i want return error, don't delete data, but, this not working.

 

destroy: function(options) {
    options.error(); // not working
}

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 30 Oct 2018, 01:09 PM
Hello Tom,

In general, the Kendo UI for Vue components provide a destroy() method. It can be used to detach all event handlers and attributes and prepare the component for safe removal from the DOM. However, this method cannot be used like a function, as there is no dedicated destroy event.

I assume that you are trying to achieve some specific scneario? Could you please elaborate a bit more on the exact use case so that I am able to provide you with a more efficient assistance? Also, could you specify to which Vue component are you referring?

Regards,
Dimitar
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Asked by
Tom
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or