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

Tabstrip Wizard Doesn't Queue Selects

3 Answers 72 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
jovaughn
Top achievements
Rank 1
Iron
jovaughn asked on 02 Jan 2020, 07:18 PM

In this dojo I want to have a button to select the next and previous tabs(wizard navigation). The buttons work if the user clicks them slowly.

If the next button is clicked say 5 times rapidly, the tabstrip will only select up until the 2nd or 3rd tab instead of going all the way to the end.

I am using the asp.net core version of kendo but the jquery version is easier to show in the dojo and represents my problem.

https://dojo.telerik.com/EWALijil

 

Is there a way outside of disabling the button/debouncing/ or timeouts to get the tabstrip to queue any selects and use the final?

 

 

3 Answers, 1 is accepted

Sort by
0
Accepted
Martin
Telerik team
answered on 07 Jan 2020, 10:21 AM

Hello Jovaughn,

Thank you for the provided Dojo example. 

The reported issue when clicking the button quickly is because the activation animation for the tab that is being loaded is not finished when you click the button to load the next tab in line. That results in the TabStrip being stuck on the second or third tab.

A possible solution would be to disable the animation configuration.

  var tabStrip = $("#tabstrip").kendoTabStrip({
  	animation:false
  }).data("kendoTabStrip");

Here is the modified example for reference.

Let me know if that is acceptable to you.

Regards,
Martin
Progress Telerik

Get quickly onboarded and successful with Telerik UI for ASP.NET Core with the dedicated Virtual Classroom technical training, available to all active customers.
0
jovaughn
Top achievements
Rank 1
Iron
answered on 07 Jan 2020, 03:57 PM

Ended up using

tabStrip.setOptions({animation:false});

This solved the problem thanks.

Only issue I had was trying to do this using the tag helper.

None of these options seem to disable the animations

<kendo-tabstrip name="NewInvoiceWizard" animation="false">
        <popup-animation enabled="false">
            <close duration="0" effects="none" />
            <open duration="0" effects="none" />
        </popup-animation>
0
Martin
Telerik team
answered on 10 Jan 2020, 11:22 AM

Hello Jovaughn,

I managed to disable the animation using popup-animation enabled="false". Here you will find a video how it behaves on my side. Of course, you can freely use setOptions method instead, if it is acceptable to you.

Let me know if you have any further questions.

Regards,
Martin
Progress Telerik

Get quickly onboarded and successful with Telerik UI for ASP.NET Core with the dedicated Virtual Classroom technical training, available to all active customers.
Tags
TabStrip
Asked by
jovaughn
Top achievements
Rank 1
Iron
Answers by
Martin
Telerik team
jovaughn
Top achievements
Rank 1
Iron
Share this question
or