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

RadTabStrip + RadMultiPage + SiteMap

1 Answer 86 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Jason Craig
Top achievements
Rank 1
Jason Craig asked on 24 Jun 2009, 02:35 PM
Okay, if someone can give me a hand hear I would definitely appreciate it.  I'm not sure if I'm doing something wrong, don't understand how this is supposed to work or simply found a bug.  I'm trying to use the RadTabStrip with an associated RadMultiPage together with a SiteMap.  I've found many resources on the combination of two of those three items but very little that discusses the use of all three, or at least in the way I'm (trying to) use them.

The site map contains entries for several pages at the same level in the hierarchy (siblings), each with several nodes.  These child nodes do not have a URL entry but instead are (intended to) switch the PageView of the RadMultiPage. The top level nodes (which have URLs) work as expected, each linking to the correct page.  The child tabs of each of these pages display correctly but do not perform what I expected the when clicked.  The child tabs of the page listed first in the SiteMap display a PageView but the PageView they are displaying is offset by 1.  That is, the first child tab on the first page is displaying the second PageView, the second is displaying the third, etc.  This leaves the last tab not displaying a PageView at all.  Also, the child tabs on each other page after the first do not display a PageView.

I've tried using the client side API to try to determine what is occuring and it would appear that the child tabs on all pages are attempting to display a PageView with the same index as the the index of the node in the SiteMap.  That is, the first page's third child node (which is the fourth node) is attempting to display the fourth PageView, which does not exist.

Thoughts? Ideas? Suggestions? Am I simply misunderstanding how this should be operating? AKA: "user error"?  If I am doing things correctly and it "should" be working I have a stripped down example that demonstrates the situation, but I've also included a few of the appropriate snippits.

Thanks for any help.

web.sitemap

 

 

 

    <siteMapNode url="~/Index.aspx" title="Fruits" description="" > 
        <siteMapNode url="~/Page1.aspx" title="Page1" description="" > 
            <siteMapNode title="Apple" description="" /> 
            <siteMapNode title="Bananna" description="" /> 
            <siteMapNode title="Carrot" description=""  /> 
        </siteMapNode> 
        <siteMapNode url="~/Page2.aspx" title="Page2" description="" > 
            <siteMapNode title="Date" description="" /> 
            <siteMapNode title="Eggplant" description="" /> 
            <siteMapNode title="Fig" description=""  /> 
        </siteMapNode> 
    </siteMapNode> 

 

 

Page1.aspx

 

 

    <asp:SiteMapDataSource ID="siteMapDataSource" runat="server" ShowStartingNode="false" />  
    <telerik:RadTabStrip ID="radTabStrip1" runat="server" DataSourceID="siteMapDataSource" MultiPageID="radMultiPage1" SelectedIndex="0" />  
    <telerik:RadMultiPage runat="server" id="radMultiPage1" SelectedIndex="0" >  
        <telerik:RadPageView runat="server" ID="radPageView1" >Page View - Apple</telerik:RadPageView>  
        <telerik:RadPageView runat="server" ID="radPageView2" >Page View - Banana</telerik:RadPageView>  
        <telerik:RadPageView runat="server" ID="radPageView3" >Page View - Carrot</telerik:RadPageView>  
    </telerik:RadMultiPage>  
 

Page2.aspx

(Same structure as Page1)

1 Answer, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 29 Jun 2009, 01:17 PM
Hi Jason,

I think it will be best if you can open a support ticket and send us a simple running project (incl. your custom skin, CSS, images, DB backup if needed and so on) demonstrating the problem (and step-by-step instructions on doing so). In that way we can reproduce and pinpoint the problems you're facing on our side, understand the logic of your application and provide a solution.

Thanks beforehand for your patience and cooperation
,
Paul
the Telerik team

Instantly find answers to your questions on the newTelerik Support Portal.
Check out the tipsfor optimizing your support resource searches.
Tags
TabStrip
Asked by
Jason Craig
Top achievements
Rank 1
Answers by
Paul
Telerik team
Share this question
or