jQWidgets Forums

jQuery UI Widgets Forums Grid Multiple value in one cell from XML

This topic contains 2 replies, has 2 voices, and was last updated by  Touxe 8 years, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Multiple value in one cell from XML #89165

    Touxe
    Participant

    Hello,

    I’m a new user and i started to implement a grid.
    For each line in my grid, the last column may be multivalued (0, 1 or more value).

    I’m loading datas from an XML :

    <Students>
      <Student>
        <Name>Student 1 Name</Name>
        <Id>1</Id>
        <Courses>
          <Course>
            <Label>Mathematics</Label>
            <Id>1</Id>
          </Course>
          <Course>
            <Label>History</Label>
            <Id>2</Id>
          </Course>
        </Courses>
      </Student>
      <Student>
        <Name>Student 2 Name</Name>
        <Id>5</Id>
        ...
       </Student>
    <Students>

    How can i show in the last column of my grid all course label ? (Sorted list for example).

    I tried to implement the example “foreign key” provided in the documentation but without success.

    Thank you for your help

    Multiple value in one cell from XML #89182

    Christopher
    Participant

    Hi Touxe,

    A possible approach would be to show the column with the multuple values as a custom editor, a jqxDropDownList. That would require to load the Courses from your XML as a second data source to the jqxDropDownList. As a result in the cell of that column you will see only one value, for example “Mathematics” and when you click on it to change it, the rest of the available options will appear in a dropDownList. If that works for you then it’s possible to accomplish the goal using that approach.

    Best Regards,
    Christopher

    jQWidgets Team
    http://www.jqwidgets.com

    Multiple value in one cell from XML #89321

    Touxe
    Participant

    Hello,

    Thank you for your answer. But the solution does not suit me.
    I will try a different way to show thoses datas;

    Regards

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

You must be logged in to reply to this topic.