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

Using the Panel to populate a table...?

2 Answers 69 Views
XmlHttpPanel
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 30 Aug 2010, 02:11 AM
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?

2 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 01 Sep 2010, 03:40 PM
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
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 01 Sep 2010, 03:48 PM
Oh, nice thinking!

I'll give that a go
Tags
XmlHttpPanel
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Pero
Telerik team
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Share this question
or