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

[Solved] Bugs on disabled tabs

5 Answers 205 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Joan Vilariño
Top achievements
Rank 2
Joan Vilariño asked on 28 Apr 2010, 04:02 PM
Hello.

I'm having trouble with a tabstrip where I need some disabled tabs to be enabled at runtime as part of a "wizard"

I have 3 tabs. All 3 tabs are loaded using LoadFromContent. At render time, the first tab is .Selected(true) and the other 2 are .Enabled(false);

The page enables and selects the 2nd tab in the tabstrip and I get a javascript error in jQuery (the action attached to LoadFromContent never gets fired).

If I leave the tabs enabled at render time by removing .Enabled(false), and then I disable them at $(document).ready, even being disabled, I clic on the tab and the content's partial view gets loaded as a page (without styles nor master page).

Is this a recognised/fixed bug? Is there any workaround?

Thanks!!

5 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 29 Apr 2010, 12:30 PM
Hello Joan,

Thank you for pointing this issue. I confirm that it is a bug, which we were able to fix. For your convenience I have attached latest internal build which includes the fixes.

I have updated your Telerik points.

Sincerely yours,
Georgi Krustev
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
Joan Vilariño
Top achievements
Rank 2
answered on 29 Apr 2010, 01:28 PM
What are Telerik points? o.O

Anyway, I've seen in one of the threads where you pointed me in another reply, that there is a SP1 for the controls.

I've downloaded them, but you don't provide fonts nor changelog.txt, and this way I don't know what of the workarounds I've made for bugs are already fixed, and what not, to re-patch them if needed.

Can you provide me that? please?

Thanks!
0
Georgi Krustev
Telerik team
answered on 29 Apr 2010, 02:11 PM
Hello Joan VilariƱo,

Telerik Components for ASP.NET MVC(4/16/2010 - 4/30/2010)

What's fixed

  • FIX: Initially disabled items, does not render href attribute of the link and the LOD does not work.
  • FIX: IsAuthorized method was not called if a custom attribute implements IAuthorizeAttribute.

DatePicker

What's fixed

  • FIX: DatePicker does not accept string.Empty as parameter in Value method.

Grid

What's fixed

  • FIX: Cannot clear initial filters in server binding mode
  • FIX: Server filtering breaks after applying a filter which contains aposthophe

NumericInput

What's fixed

  • FIX: When input was empty the change event was not triggered.

Regards,
Georgi Krustev
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
Sammy Yu
Top achievements
Rank 1
answered on 16 Dec 2010, 07:29 PM
I'm using the latest version, 2010.3.1110.235, but the bug doesn't seem fixed.

Here is my code:

<%

 

var disableTab = ViewData["disableTab"] ?? false;
var routeValues = new {someId = Model.Id};

 

 

Html.Telerik().TabStrip()
.Name(

 

"MyTabStrip")
.Items(items =>
{
items.Add().Text(
"Tab 1")
.LoadContentFrom(Url.Action(
"ShowPartialView1", routeValues));.
items.Add().Text(
"Tab 2")
.LoadContentFrom(Url.Action(
"ShowPartialView2", routeValues));
items.Add().Text(
"Tab 3")
.LoadContentFrom(Url.Action(
"ShowPartialView3", routeValues));
items.Add().Text(
"Tab 4")
.LoadContentFrom(Url.Action(
"ShowPartialView4", routeValues));
items.Add().Text(
"Tab 5").Enabled(!(bool)disableTab)
.LoadContentFrom(Url.Action(
"ShowPartialView5", routeValues));
items.Add().Text(
"Tab 6").Enabled(!(bool)disableTab)
.LoadContentFrom(Url.Action(
"ShowPartialView6", routeValues));
})
.SelectedIndex(0)
.Render();
%>

 

 

 

 

 

Tab 5 and 6 are disabled properly when I set the ViewData["disableTab"] to be true. However, when I click on either one of the disabled tabs, the LoadContentFrom() still executes the action inside it, e.g. ShowPartialView5; and displays the content of the user control without style.


Thanks,

Sammy

 
0
Alex Gyoshev
Telerik team
answered on 17 Dec 2010, 01:57 PM
Hi Sammy Yu,

Thank you for letting us know, the attached JavaScript file should solve the problem. The fix will be included in upcoming builds.

Best wishes,
Alex Gyoshev
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
Tags
TabStrip
Asked by
Joan Vilariño
Top achievements
Rank 2
Answers by
Georgi Krustev
Telerik team
Joan Vilariño
Top achievements
Rank 2
Sammy Yu
Top achievements
Rank 1
Alex Gyoshev
Telerik team
Share this question
or