Not a valid attribute of element RadTab message

5 posts, 1 answers
  1. Alex
    Alex avatar
    26 posts
    Member since:
    Apr 2009

    Posted 16 Apr 2009 Link to this post

    Development Environment:  Windows XP Pro SP3, VB2008 SP1 (therefore ASP.NET 3.5), IE7, Radcontrols for ASP.NET AJAX Q2 2008.
    I am receiving about 9 messages on my MainMasterPage stating "Validation (ASP.NET): Attribute 'ID' is not a valid attibute of element 'RadTab'.  What is causing this as I see it used in your documentation on this url http://www.telerik.com/help/aspnet-ajax/change-tabs-mouseover.html?

    Here is a portion of the code that is triggering these messages:

     

    <

     

    telerik:RadTabStrip ID="tabMain" runat="server" Skin="Outlook" SelectedIndex="1" CausesValidation="False"> 

     

     

     

     

     

    <Tabs>

     

    <telerik:RadTab ID="HomeTab" runat="server" NavigateUrl="/WebGT/Pages/Home/Home.aspx" Text="Home" ToolTip="Web-GT Home Page"></telerik:RadTab>

     

     

     

     

    <telerik:RadTab ID="SummaryTab" runat="server"

     

    NavigateUrl="/WebGT/Pages/Summary/Summary.aspx" Text="Summary"

     

    ToolTip="Grant Summary" Selected="True"></telerik:RadTab>

     

     

     

     

    <telerik:RadTab ID="GrantsTab" runat="server" NavigateUrl="/WebGT/Pages/Grants/Grants.aspx" Text="Grants" ToolTip="Enter and manage grants"></telerik:RadTab>

     

     

     

     

     

    <telerik:RadTab ID="MessagesTab" runat="server" NavigateUrl="/WebGT/Pages/Messages/Messages.aspx" Text="Messages" ToolTip="View messages."></telerik:RadTab>

     

     

     

    Thanks,
    Alex 

     

     

     

     

     

     

     

     

  2. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 16 Apr 2009 Link to this post

    Hello Alex,

    I used your code to test in VS2008 but I do not received any errors. I had to just close the Tabs and RadTabStrip tags appropriately.

    Moreover, I copied the code from the referenced help article and did not get any errors.

    Can you please check if your reference to the Telerik.Web.UI assembly is ok?
    What happens in a blank new page without using the master page?

    Greetings,
    Veselin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Alex
    Alex avatar
    26 posts
    Member since:
    Apr 2009

    Posted 16 Apr 2009 Link to this post

    Thanks for the quick response.  I created a blank new page and added a RadTabStrip to it with a few tabs and receive the same messages.  The reference for Telerik on my Master page and this new page are exactly the same.  Here is the entire aspx code for the new page:

    <%

    @ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb" Inherits="NCAGR.Application.WebGT.PresentationLayer.WebForm1" %>

     

    <%

     

    @ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

     

     

    <!

     

    DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

     

    <

     

     

    html xmlns="http://www.w3.org/1999/xhtml" >

     

    <

     

     

    head runat="server">

     

     

     

    <title></title>

     

    </

     

     

    head>

     

    <

     

     

    body>

     

     

     

    <form id="form1" runat="server">

     

     

     

    <div>

     

     

     

     

    <telerik:RadTabStrip ID="RadTabStrip1" runat="server">

     

     

     

    <Tabs>

     

     

     

    <telerik:RadTab ID="Root1" runat="server" Text="Root RadTab1">

     

     

     

    <Tabs>

     

     

     

    <telerik:RadTab ID="Tab1" runat="server" Text="Child RadTab 1">

     

     

     

    </telerik:RadTab>

     

     

     

    <telerik:RadTab ID="Tab2" runat="server" Text="Child RadTab 2">

     

     

     

    </telerik:RadTab>

     

     

     

    <telerik:RadTab ID="Tab3" runat="server" Text="Child RadTab 3">

     

     

     

    </telerik:RadTab>

     

     

     

    </Tabs>

     

     

     

    </telerik:RadTab>

     

     

     

    </Tabs>

     

     

     

    </telerik:RadTabStrip>

     

     

     

     

    </div>

     

     

     

    </form>

     

    </

     

     

    body>

     

    </

     

     

    html>

    Here is the first Message that appears for this new page:  Message 20 Validation (ASP.Net): Attribute 'ID' is not a valid attribute of element 'RadTab'. D:\Solutions\WebGTSolution\WebGT\Pages\WebForm1.aspx 17 33 WebGT

    I am sorry my posting of the code consumes so much blank space in the post.  I have tried to take it out but it doesn't seem to work.  Thanks for looking at this issue.

     

     

  4. Answer
    Paul
    Admin
    Paul avatar
    4281 posts

    Posted 17 Apr 2009 Link to this post

    Hi Alex,

    The ID property is internally used to support the server-side control framework we have developed. It is no longer rendered to save output on the client-side. You can still make it render if you set it via the attributes collection of the tab (tab.Attributes["id"] = value). You can also use the Value property for the sake of identifying tabs.

    Best wishes,
    Paul
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Alex
    Alex avatar
    26 posts
    Member since:
    Apr 2009

    Posted 17 Apr 2009 Link to this post

    I didn't really follow how to use the attributes collection as I am new to web development and have had to take over a contractor's code but using the value property I believe will suffice and it does remove the Messages that were displaying in the Error List.  Thank you for your help.
Back to Top