How to stop the process

1 Answer 52 Views
ListBox
Pierre
Top achievements
Rank 2
Iron
Iron
Pierre asked on 17 Oct 2022, 03:56 PM

HI,

we can intercept the ActionClic of the ListBox, but how we can stop the acction. For exemple, if the "delete" action need to be cancelled after some validation.

Thanks

Pierre
Top achievements
Rank 2
Iron
Iron
commented on 17 Oct 2022, 04:07 PM

I try


ActionClic(e: Event){
        
   e.stopImmediatePropagation();
   e.stopPropagation();
        
}

1 Answer, 1 is accepted

Sort by
0
Yanmario
Telerik team
answered on 20 Oct 2022, 09:43 AM

Hi Pierre,

The actionClick event isn't preventable and returns only the ActionName of the action that was taken in the ListBox tools. To gain control over the moving of the items, the developer can use manual binding as demonstrated in the following article:

https://www.telerik.com/kendo-angular-ui/components/listbox/data-binding/#toc-manual-data-binding

From there depending on the condition the developer has full control over the item placement as the logic would be custom tailored to the application requirements.

I hope the provided information helps.

Regards,
Yanmario
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.

Tags
ListBox
Asked by
Pierre
Top achievements
Rank 2
Iron
Iron
Answers by
Yanmario
Telerik team
Share this question
or