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

RadAjaxPanel GroupingText does not emit fieldset

1 Answer 82 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 2
John asked on 28 May 2014, 02:00 PM
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>


1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 29 May 2014, 09:01 AM
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.
Tags
Ajax
Asked by
John
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Share this question
or