jQWidgets Forums

jQuery UI Widgets Forums TreeGrid Displaying this xml in TreeGrid

Tagged: ,

This topic contains 2 replies, has 2 voices, and was last updated by  Peter Stoev 10 years, 11 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Displaying this xml in TreeGrid #56838

    chradha
    Participant

    Hi

    Can you help me in getting tree grid for the following xml?

    <tables>
    <table name=”table_1″>
    <field name=”field_1″ type=”char” description=”It is field one under first table” />
    <field name=”field_2″ type=”char” description=”It is field two under first table” />
    </table>
    <table name=”table_2″>
    <field name=”field_3″ type=”char” description=”It is field three under second table” />
    <field name=”field_4″ type=”char” description=”It is field four under second table” />
    </table>
    </tables>

    Many Thanks,
    radha

    Displaying this xml in TreeGrid #56846

    chradha
    Participant

    Sorry. The table tags have description also.
    <tables>
    <table name=”table_1″ description=”This has employee info”>
    <field name=”field_1″ type=”char” description=”It is field one under first table” />
    <field name=”field_2″ type=”char” description=”It is field two under first table” />
    </table>
    <table name=”table_2″ description=”This has projects info”>
    <field name=”field_3″ type=”char” description=”It is field three under second table” />
    <field name=”field_4″ type=”char” description=”It is field four under second table” />
    </table>
    </tables>

    The table tag and field tags have data in attributes. Same attribute ‘name’ exists in table and field tags.

    …….
    Radha

    Displaying this xml in TreeGrid #56849

    Peter Stoev
    Keymaster

    Hi Radha,

    Unfortunately, jqxTreeGrid does not have built-in data loading of such type of XML data. A possible solution for your scenario is to build a custom function which loads your XML and builds a nested JSON which you will then use as a data source.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.