CodeSmith Community
Your Code. Your Way. Faster!

Patch: TableRepeater/StronglyTypedRepeater: No Span tag and Header/Footer fix

Latest post 03-11-2008 9:09 AM by CitizenBane. 4 replies.
  • 03-07-2008 10:30 AM

    • CitizenBane
    • Top 50 Contributor
    • Joined on 10-30-2007
    • Grand Rapids, MI
    • Posts 94
    • Points 1,740

    Patch: TableRepeater/StronglyTypedRepeater: No Span tag and Header/Footer fix

    Here's a patch that fixes the strongly typed repeater so that you can set a HeaderTemplate and FooterTemplate based on the reported bug here:

    http://community.codesmithtools.com/forums/p/8074/30185.aspx#30185

    This patch will also remove the <span> tags that surrounded the itemtemplate (as well as the headertemplate and footertemplate once I got those working).

    I completely commented out the the CreateChildControls() method, and moved the appropriate code that adds the HeaderTemplate and FooterTemplate to the CreateChildControls(IEnumerable dataSource, bool dataBinding) method.  I'm not sure if this will break anything, so I would like some input on this if anyone disagrees with the methodology here.

    I only made a modification to the TableRepeater.cst file, not the ViewRepeater.cst file.  

     

    I'm outside ur box, shiftin' ur paradigm.
    • Post Points: 5
  • 03-07-2008 10:51 AM In reply to

    • CitizenBane
    • Top 50 Contributor
    • Joined on 10-30-2007
    • Grand Rapids, MI
    • Posts 94
    • Points 1,740

    Re: Patch: TableRepeater/StronglyTypedRepeater: No Span tag and Header/Footer fix

    And here is the patch that fixes the same issues in the ViewRepeater.

    I'm outside ur box, shiftin' ur paradigm.
    • Post Points: 65
  • 03-09-2008 3:32 PM In reply to

    • mike123
    • Top 10 Contributor
    • Joined on 02-25-2005
    • Toronto, Ontario
    • Posts 734
    • Points 17,040

    Re: Patch: TableRepeater/StronglyTypedRepeater: No Span tag and Header/Footer fix

    Patch applied in rev. 707. Thanks for your contribution. 

    Mike Shatny
    --------------------------------------------------------------
    Member of the .netTiers team http://www.nettiers.com
    --------------------------------------------------------------

    • Post Points: 5
  • 03-10-2008 12:06 PM In reply to

    • Rippo
    • Top 75 Contributor
    • Joined on 05-06-2005
    • UK
    • Posts 61
    • Points 1,455

    Re: Patch: TableRepeater/StronglyTypedRepeater: No Span tag and Header/Footer fix

    Hi Citizen

    I will let you know the outcome when I can get my hands on revision 707. 

    Thanks for all your help! You are a gentleman...

    Rippo 

    Richard Wilde wildesoft.net

    • Post Points: 35
  • 03-11-2008 9:09 AM In reply to

    • CitizenBane
    • Top 50 Contributor
    • Joined on 10-30-2007
    • Grand Rapids, MI
    • Posts 94
    • Points 1,740

    Re: Patch: TableRepeater/StronglyTypedRepeater: No Span tag and Header/Footer fix

    "You are a gentleman..."

     Now now... no need to spout false accusations. Wink

    I'm outside ur box, shiftin' ur paradigm.
    • Post Points: 5
Page 1 of 1 (5 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems