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

How to change radtab style on failed validation

3 Answers 81 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Mac P
Top achievements
Rank 1
Mac P asked on 08 Nov 2010, 07:42 PM
Hello

I have radtabstrip that loads usercontrols in dynamic radpageviews. Each user control has different validation groups. On  validation failure i need to indicate user to go ahead and fix validation errors on other tab in wizard.
For e.g. if user goes from tab A to tab C and save it i need to display validation error on tab B. For that i need to either add Red Exclamation Mark or change the font of tab to red or tab the entire tab color to red.

Any idea how do i do that? I am using custom skins.

Regards
Mac

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 12 Nov 2010, 01:27 PM
Hello Mac P,

I suggest you set CssClass property of the tab that fails the validation. Please check this online example which shows how to do this.

Regards,
Yana
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Ben
Top achievements
Rank 1
answered on 14 Mar 2016, 03:18 PM

The posted link for the online example no longer works. I'm assuming it is now the demo page here: http://demos.telerik.com/aspnet-ajax/tabstrip/examples/appearance/uniquetabappearance/defaultcs.aspx. However I'm not seeing any way to set the CssClass of a tab that has failed validation. Is this functionality that has been removed? I can't find a way to change a tab's appearance when validation has failed.

Also, that demo appears to be broken. I've looked at it in IE, Firefox and Chrome; the CSS seems to be really messed up in every browser and the demo doesn't show off the various states the tabs can be in.

0
Veselin Tsvetanov
Telerik team
answered on 17 Mar 2016, 09:26 AM
Hi Ben,

Yes the demo has been moved to the page that you have found. It does not show how to customize RadTabs on validation failed, but it shows how one can use the CssClass property of the RadTab to customize its appearance. Currently the demo has some broken styles due to recent changes in our demos implementation.

In order to change the CssClass of a RadTab, you could use both the client-side and server-side API, depending on where your validation has been implemented.

Regards,
Veselin Tsvetanov
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
TabStrip
Asked by
Mac P
Top achievements
Rank 1
Answers by
Yana
Telerik team
Ben
Top achievements
Rank 1
Veselin Tsvetanov
Telerik team
Share this question
or