RadAjaxPanel GroupingText does not emit fieldset

2 posts, 1 answers
  1. John
    John avatar
    22 posts
    Member since:
    Apr 2012

    Posted 28 May 2014 Link to this post

    A normal asp:Panel with GroupingText set should render as a fieldset with GroupingText's value as its legend. This code below works.

    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
            <div>
                <asp:ScriptManager runat="server" ID="rsm"></asp:ScriptManager>
                <asp:Panel ID="pnlMailingAddr" runat="server" meta:resourcekey="pnlMailingAddrResource1" Visible="True" ViewStateMode="Enabled" GroupingText="Mailing Address Information">
                    <table border="0px" cellpadding="5px" cellspacing="5px" width="100%">
                        <tr>
                            <td>John Legend
                            </td>
                        </tr>
     
     
                    </table>
                </asp:Panel>
            </div>
        </form>
     
    </body>
    </html>

    But the same code using the RadAjaxPanel does not.
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
            <div>
                <asp:ScriptManager runat="server" ID="rsm"></asp:ScriptManager>
                <asp:RadAjaxPanel ID="pnlMailingAddr" runat="server" meta:resourcekey="pnlMailingAddrResource1" Visible="True" ViewStateMode="Enabled" GroupingText="Mailing Address Information">
                    <table border="0px" cellpadding="5px" cellspacing="5px" width="100%">
                        <tr>
                            <td>John Legend
                            </td>
                        </tr>
     
     
                    </table>
                </asp:RadAjaxPanel>
            </div>
        </form>
     
    </body>
    </html>


  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 29 May 2014 in reply to John Link to this post

    Hi John,

    RadAjaxPanel doesn't have GroupingText property. So as a work around you can have HTML legend control inside the RadAjaxPanel to achieve your scenario. Please have a look into the sample code snippet.

    ASPX:
    <telerik:RadAjaxPanel ID="pnlMailingAddr1" runat="server" ViewStateMode="Enabled">
        <fieldset>
            <legend>Mailing Address Information</legend>
            <table border="0px" cellpadding="5px" cellspacing="5px" width="100%">
                <tr>
                    <td>
                        John Legend
                    </td>
                </tr>
            </table>
        </fieldset>
    </telerik:RadAjaxPanel>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top