Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to add a HeaderSpan to a ListGrid in component XML

    (SmartClient_v91p_2014-03-20_Pro)

    I want to add a HeaderSpan to a ListGrid in component XML. The ListGrid expects an Array of HeaderSpan, which is fine, but HeaderSpan expects an array of String for the "fields" attribute. I can't find an example of how to create an Array of String in XML.
    My code currently looks like this:
    Code:
    <ListGrid ...>
        <fields>
            <ListGridField name="field1" ... />
            <ListGridField name="field2" ... />
            <ListGridField name="field3" ... />
        </fields>
        <headerSpans>
            <HeaderSpan>
                <title>Span title</title>
                <fields>
                    <String>field1</String>
                    <String>field2</String>
                    <String>field3</String>
                </fields>
            </HeaderSpan>
        </headerSpans>
    </ListGrid>
    Can you advise the correct way to specify the "fields" attribute of a HeaderSpan?


    Andrew

    #2
    What you're doing should have worked, but it looks like we have a bug (that we'll fix shortly).

    In the meantime use:

    Code:
    <fields>field1</fields>
    <fields>field2</fields>
    <fields>field3</fields>

    Comment


      #3
      We've fixed it - please pick up the next nightly or 9.1 build (dated Mar 28 or above) to get this fix.

      Comment

      Working...
      X