Using the Panel to populate a table...?

3 posts, 0 answers
  1. Steve
    Steve avatar
    1885 posts
    Member since:
    Dec 2008

    Posted 29 Aug 2010 Link to this post

    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).

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

    Why would that be?...firefox not liking the div of the panel?
  2. Pero
    Pero avatar
    1156 posts

    Posted 01 Sep 2010 Link to this post

    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,
    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
  3. Steve
    Steve avatar
    1885 posts
    Member since:
    Dec 2008

    Posted 01 Sep 2010 Link to this post

    Oh, nice thinking!

    I'll give that a go
Back to Top