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

[Solved] Bug with ContentURL.

2 Answers 52 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.
Aaron
Top achievements
Rank 1
Aaron asked on 29 Oct 2010, 12:24 AM
When using the tabstrip in the following manner:

Html.Telerik()
    .TabStrip().Name("FilterListTabs")
    .BindTo<Filter>(Model,
    (tabStripItem, filter) => {
        tabStripItem.Text = filter.Name;
        tabStripItem.ContentUrl = "RandomArea/Filter/Details/" + filter.FilterID;
     })

This works great except for when you: Click a tab, go to a different tab, go back to the first one you clicked on. Once you've selected any tab a second time, it will chop off the /Filter/Details/id part, and just ajax loads the root of RandomArea.

Edit: Apparently this bug happens with the following code as well:
Html.Telerik()
    .TabStrip().Name("FilterListTabs")
    .Items(tabstrip =>
    {
        foreach (Filter f in Model) {
            tabstrip.Add()
            .Text(f.Name)
            .LoadContentFrom(new RouteValueDictionary(new {Area = "RandomArea", Controller = "Filter", Action = "Details", id = f.FilterID}));
        }
     })
     .Render();

2 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 29 Oct 2010, 12:57 PM
Hello Aaron,

Unfortunately, I was not able to reproduce the depicted issue. I have created a test project in my attempt to replicate the issue. Please check it and let me know if I am missing something.

Greetings,
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
Aaron
Top achievements
Rank 1
answered on 29 Oct 2010, 05:48 PM
Hi Georgi,

I found the cause of the issue. It was having an absolutely blank partial view. I put a single letter into the partial view and it stops behaving like that.

Thanks,
Aaron
Tags
TabStrip
Asked by
Aaron
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Aaron
Top achievements
Rank 1
Share this question
or