Declined
Last Updated: 25 Feb 2020 09:19 by ADMIN
Ryan
Created on: 25 Feb 2020 06:53
Type: Feature Request
0
Add event prior to tab changing, so we can abort a tab change

When using the tab strip, it'd be nice if there were an event that fired before the tab changed so that we could abort a tab chat. For example, if a tab has some input fields that allow a user to change some setting but they change the tab without hitting save or something. It'd be nice if I could pop up a modal and ask them to save before changing tab.

The function could just return true or false to allow the tab change, etc.

1 comment
ADMIN
Stefan
Posted on: 25 Feb 2020 09:19

Hello, Ryan,

The TabStrip component does not change the tabs automatically.

This is done by the developer on the onSelect event.

On that event the developer can do the desired check and only if it passes to actually change the selected tap:

https://www.telerik.com/kendo-react-ui/components/layout/api/TabStripProps/#toc-selected

https://www.telerik.com/kendo-react-ui/components/layout/api/TabStripProps/#toc-onselect

The described functionality can be achieved with the current state of the component.

Let me know if I missed some details.

Regards,
Stefan
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