Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > XmlHttpPanel > Using the Panel to populate a table...?

Not answered Using the Panel to populate a table...?

Feed from this thread
  • Posted on Aug 29, 2010 (permalink)

    I have a table "template" on my page, and the tbody is the XmlHttpPanel...idea was to return just the <tr>s and <td>s which make up the panel (from the webservice) seeing as the headers and footers are rather large, and really all the same (never change).

    ...ok so the issue I'm having is that in this context the panel renders ABOVE the table (in firefox, havent tested others yet).

    <div>
        <table>
            <thead>
                ...HEADERS
            </thead>
            <tbody>
               <telerik:RadXmlHttpPanel ID="workflowPanel" runat="server" WebMethodName="GetWorkflow" RenderMode="Block" WebMethodPath="~/Apps/RTO/Webservices/WorkflowChain.asmx" OnClientResponseEnding="onWorkflowEnding" OnClientResponseEnded="onWorkflowEnded" OnClientResponseError="onWorkflowError" EnableViewState="false" >
     
                    </telerik:RadXmlHttpPanel>
            </tbody>
        </table>
    </div>

    Why would that be?...firefox not liking the div of the panel?

    Reply

  • Pero Pero admin's avatar

    Posted on Sep 1, 2010 (permalink)

    Hello Steve,

    The XmlHttpPanel will wrap the received HTML from the WebService or the ASP.NET callback, by a <span> or <div>. This means that in the <tbody> you would not have <tr>s and <td>s as you would expect, but a <span> element.
    To achieve your scenario you could handle the OnClientResponseEnding client-side event of the XmlHttpPanel and get the HTML from the panel, and paste it inside the <tbody>.

    Kind regards,
    Pero
    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

    Reply

  • Posted on Sep 1, 2010 (permalink)

    Oh, nice thinking!

    I'll give that a go

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > XmlHttpPanel > Using the Panel to populate a table...?