Help with Tab Transition and Alignment on Chevron Click in Telerik TabStrip

1 Answer 20 Views
TabStrip
Joe
Top achievements
Rank 1
Joe asked on 02 Apr 2025, 10:02 PM

Hi everyone,

I'm working with the Telerik TabStrip component and need help with two issues:

  1. Tab Transition on Button Click: When I click the chevron buttons to navigate through the tabs, I want the visible tabs to change with a smooth transition effect. However, I'm having trouble applying a transition effect for this behavior. Can anyone provide guidance or an example of how to implement a transition when the visible tabs change?

  2. Aligning Tabs on Button Click: When I press the chevron buttons, I want the active tab to remain the same, but the newly visible left-most tab should be aligned at the start (left side) of the TabStrip. How can I ensure that after clicking a chevron, the newly displayed tabs are aligned to the start of the TabStrip?

Any suggestions or code snippets that could help resolve these issues would be greatly appreciated!

Thanks in advance!

Nadezhda Tacheva
Telerik team
commented on 07 Apr 2025, 02:41 PM

Hi Joe,

As Anislav correctly mentioned, the TabStrip does not provide the desired functionality out of the box.

In terms of tab transition, I believe you can achieve that with CSS.

As for the aligning tabs, I want to confirm if I properly understand what is your desired behavior and what problem you are trying to solve.

By the current design, when the user presses the chevron buttons, the tab headers are scrolled but it is not guaranteed that all headers will be completely visible, some of them may be truncated. For example, in this demo, if I press the right scroll button, I may end up with the "London"  and "Barcelona" tab headers not fully visible:

Is this the scenario you want to cover?

As I understand, you want to ensure that when the user presses the scroll buttons, the tab headers will always "snap to place" so the whole headers will be visible. Please let me know if I am missing something.

1 Answer, 1 is accepted

Sort by
0
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
answered on 05 Apr 2025, 10:55 AM
Hi Joe,

The TabStrip component does not offer built-in support for these specific customizations. If these features are essential for your project, you may need to implement a custom tab componen from scratch to achieve the desired behavior.

Regards,
Anislav Atanasov
Tags
TabStrip
Asked by
Joe
Top achievements
Rank 1
Answers by
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Share this question
or