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

[Solved] Tab Strip and Panel Bar not responding to clicks

9 Answers 218 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.
Justin Bigelow
Top achievements
Rank 1
Justin Bigelow asked on 12 Nov 2009, 08:42 PM
Hello,

I am attempting to implement the 2009 Q3 MVC extensions. I initially tried to add the tab strip control to my View. It rendered properly however instead of being able to click on different tabs to hide/reveal different content sections the currently selected tab remained the same and this "#TabStrip-2" was appended to the end of the url. Running the sample project included worked properly, with tabs switching and nothing appended to the url. Using Firebug I saw that I was getting the following error:

"jQuery("#TabStrip").tTabStrip is not a function"

I moved the Telerik().ScriptRegistrar() method from the bottom of my site.master page to the head of site.master and that error went away. Now there are no javascript errors reported by Firebug however the original behavior persists, the tabs to do not change and href value is appended to the end of the url.

I then tried to implement the PanelBar sample code but got the same behavior: the panels render correctly but clicking on them does not expand or contract them and the href value is appended to the end of the url.

I get the same behavior between Firefox 3.5.5 and IE 8 (in or out of compatibility mode)
My telerik scripts are located in \Scripts\2009.3.1103.0, moving the scripts out of the subfolder does not fix the issue.

Any insight as to what I am doing wrong is appreciated.

9 Answers, 1 is accepted

Sort by
0
Yitzhak Khabinsky
Top achievements
Rank 1
answered on 12 Nov 2009, 08:53 PM
Please verify that you copied the telerik.*.css files to the ~/content directory.

Regards,
Yitzhak
0
Justin Bigelow
Top achievements
Rank 1
answered on 12 Nov 2009, 08:59 PM
Yes, the .css files are present in the ~/content directory. I initially had them in ~/content/2009.3.1103.0 when I reported the problem. I just moved them out of the the /2009.3.1103.0 folder and the problem still persists. My Telerik().StylesheetRegistrar() is being called in the head of site.master if that makes a difference.
0
Yitzhak Khabinsky
Top achievements
Rank 1
answered on 12 Nov 2009, 09:06 PM
Is it possible that you will attach your VS solution?

Regards,
Yitzhak
0
Justin Bigelow
Top achievements
Rank 1
answered on 12 Nov 2009, 09:29 PM
I have recreated the problem in another solution that does not have my company code in it. The same behavior occurs in this solution as well.

I zipped my solution and renamed with a .jpg extension so I could attach for your review but even with a.jpg extension the forum will not let me upload. Is there an alternate way I can get the solution to you?

Thanks.
0
Atanas Korchev
Telerik team
answered on 13 Nov 2009, 07:21 AM
Hello Justin Bigelow,

Receiving this JavaScript error means that the JavaScript files are not included for some reason. Could you please paste here your tabstrip/panelbar declaration as well as the ScriptRegistrar one? This would probably indicate what the problem is.

Regards,
Atanas Korchev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Justin Bigelow
Top achievements
Rank 1
answered on 13 Nov 2009, 08:13 PM
Thanks for looking into this....

Declared in the site.master <head>:
<% Html.Telerik().StyleSheetRegistrar().DefaultGroup(group => group.Add("telerik.common.min.css"
           .Add("telerik.vista.min.css")) 
           .Render(); %>            
    <% Html.Telerik().ScriptRegistrar() 
                     .DefaultGroup(group => group.Combined(true).Compress(true)) 
                     .Scripts(script => script 
                         .AddGroup("QSF", qsfScripts => 
                             qsfScripts                                                              
                                .Add("telerik.common.min.js")                                 
                                .Compress(true
                                .Combined(true
                         ) 
                     )                    
                     .Render(); %>  

This is declared within ~/Views/Home/Index.aspx
<% Html.Telerik().TabStrip() 
            .Name("TabStrip"
            .Items(tabstrip => 
            { 
                tabstrip.Add() 
                    .Text("ASP.NET MVC")                 
                    .Content(() => 
                    {%> 
                        <ul> 
                            <li>Pure ASP.NET MVC components</li> 
                            <li>Completely Open Source</li> 
                            <li>Exceptional Performance</li> 
                            <li>Based on jQuery</li> 
                            <li>Search Engine Optimized</li> 
                            <li>Cross-browser support</li> 
                        </ul> 
                    <%}); 
 
                tabstrip.Add() 
                    .Text("Silverlight")                     
                    .Content(() => 
                    {%> 
                        <ul> 
                            <li>Built on Silverlight 3</li> 
                            <li>RIA services support</li> 
                            <li>Validation support</li> 
                            <li>Out of browser support</li> 
                            <li>The first commercial 3D chart</li> 
                            <li>Free testing framework</li> 
                        </ul> 
                    <%}); 
                }) 
            .SelectedIndex(0) 
            .Render(); 
    %> 

The location of my .css files is ~/content/2009.3.1103.0
The location of my .js files is ~/scripts/2009.3.1103.0






0
Georgi Krustev
Telerik team
answered on 16 Nov 2009, 09:37 AM
Hello Justin,

I will suggest you place the Script registrar in the end of the site.master page. Also could you please verify that you have registered the HTTP handler in your web.config. For further information review this online help article.

Regards,
Georgi Krustev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Justin Bigelow
Top achievements
Rank 1
answered on 16 Nov 2009, 03:23 PM
Hi Georgi,

I was indeed missing the handler, after adding that and moving the ScriptRegistrar to the bottom of the site.master the TabStrip started working. I checked the Getting Started section of the help file included in the download and it doesn't mention adding the handler, it might be a good idea to add that.

Thanks for the great controls and great support!
0
Georgi Krustev
Telerik team
answered on 16 Nov 2009, 05:16 PM
Hello Justin,

Thank you for pointing this lapse. It was update added to our product backlog.

Kind regards,
Georgi Krustev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TabStrip
Asked by
Justin Bigelow
Top achievements
Rank 1
Answers by
Yitzhak Khabinsky
Top achievements
Rank 1
Justin Bigelow
Top achievements
Rank 1
Atanas Korchev
Telerik team
Georgi Krustev
Telerik team
Share this question
or