1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / RadTabStrip Tabs not displaying

RadTabStrip Tabs not displaying

4 posts, 0 answered
  1. Ken Orr
    Ken Orr avatar
    7 posts
    Registered:
    13 Mar 2004
    06 May 2010
    Link to this post
    Hi
    I am developing a number of web user controls accessed by a RadTabStrip. Everything works fine on my test web site but as soon as I load it into Sitefinity the tabs show x unless the mouse hovers over or selects a particular tab.
    Can anyone help?
    Many Thanks
    Ken Orr

    Examples attached
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    06 May 2010
    Link to this post
    Hi Ken Orr,

    Unfortunately unless we see your code there is no way we can tell what the issue could be. As for some general guidelines you can check out this blog post - Tabbed blog controls. Also note that if you are using AjaxManager in the control you should use AjaxManagerProxy. For more information on AjaxManagerProxy check out those two articles:
    http://www.telerik.com/help/aspnet-ajax/ajxUserControls.html
    http://www.telerik.com/help/aspnet-ajax/ajxAjaxMasterPage.html

    Kind regards,
    Radoslav Georgiev
    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.
  3. Ken Orr
    Ken Orr avatar
    7 posts
    Registered:
    13 Mar 2004
    06 May 2010
    Link to this post
    <%@ Control Language="C#" AutoEventWireup="true" CodeFile="ctlJobSheet.ascx.cs" Inherits="_cpControls_ctlJobSheet" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <%@ Register Assembly="Telerik.OpenAccess, Version=2009.3.1119.2, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342"
        Namespace="Telerik.OpenAccess" TagPrefix="telerik" %>
    <%@ Register Src="ctlPortal.ascx" TagName="ctlPortal" TagPrefix="uc1" %>
    <%@ Register Src="ctlLocksChanged.ascx" TagName="ctlLocksChanged" TagPrefix="uc2" %>
    <telerik:OpenAccessDataSource ID="oads" runat="server">
    </telerik:OpenAccessDataSource>
    <table border="0" cellpadding="1" cellspacing="1">
        <tr>
            <td align="center">
                <uc1:ctlPortal ID="ctlPortal1" runat="server" />
            </td>
        </tr>
        <tr>
            <td align="center">
                <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Office2007" MultiPageID="RadMultiPage1"
                    SelectedIndex="0">
                    <Tabs>
                        <telerik:RadTab runat="server" Text="Possession" Selected="True">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="Property">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="Locks">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="Water">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="Clearance">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="Garden">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="Pests/Hazards">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="Condition">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="Agent">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="Notes">
                        </telerik:RadTab>
                    </Tabs>
                </telerik:RadTabStrip>
            </td>
        </tr>
        <tr>
            <td align="center">
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:Label ID="lblMessage" runat="server"></asp:Label>
            </td>
        </tr>
    </table>
    <telerik:RadMultiPage ID="RadMultiPage1" runat="server">
        <telerik:RadPageView ID="RadPageView1" runat="server" Width="100%">
            Possession</telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView2" runat="server" Width="100%">
            Property</telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView3" runat="server" Width="100%">
            <uc2:ctlLocksChanged ID="ctlLocksChanged1" runat="server" />
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView4" runat="server" Width="100%">
            Water</telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView5" runat="server" Width="100%">
            Clearance</telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView6" runat="server" Width="100%">
            Garden</telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView7" runat="server" Width="100%">
            Pests/Hazards</telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView8" runat="server" Width="100%">
            Condition</telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView9" runat="server" Width="100%">
            Agent</telerik:RadPageView>
        <telerik:RadPageView ID="RadPageView10" runat="server" Width="100%">
            Notes</telerik:RadPageView>
    </telerik:RadMultiPage>

    public partial class _cpControls_ctlJobSheet : System.Web.UI.UserControl
    {
        private IObjectScope scope = null;
        MembershipUser usr = Membership.GetUser();
      
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            scope = EPSCastellainObjectContextProvider.GetNewObjectScope();
            scope.Transaction.Begin();
            scope.TransactionProperties.AutomaticBegin = true;
        }
      
        protected override void OnUnload(EventArgs e)
        {
            base.OnUnload(e);
            if (scope.Transaction.IsActive)
                scope.Transaction.Commit();
            scope.Dispose();
        }
      
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                BindData();
            }
        }
      
        private void DecodeInstructionGuid()
        {
            try
            {
                if (Request.Params["guid"] != null)
                {
                    Guid guid = new Guid(Request.Params["guid"]);
                    Session["guid"] = guid;
                    var instructions = scope.Extent<Instruction>().Where(ins => ins.Guid == guid);
                    Session["propertyid"] = instructions.ElementAt(0).Property1.PropertyID;
                    Session["instructionid"] = instructions.ElementAt(0).InstructionID;
                }
            }
            catch (Exception ex)
            {
                lblMessage.Text = ex.Message;
            }
        }
      
        private void BindData()
        {
            try
            {
                DecodeInstructionGuid();
                lblMessage.Text = "";
                ctlPortal1.Title = "Job Sheet";
            }
            catch (Exception ex)
            {
                lblMessage.Text = ex.Message;
            }
        }
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    06 May 2010
    Link to this post
    Hello Ken Orr,

    There is nothing that seems to be wrong with the code you have pasted. I have tried it out on a Sitefinity website and it works as expected. I have attached a small video illustrating how it works. If on the tabstrip from the image you are using a custom skin, make sure that the styles contain images whose rules can be resolved.

    All the best,
    Radoslav Georgiev
    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.
Register for webinar
4 posts, 0 answered