jQWidgets Forums

Forum Replies Created

Viewing 16 post (of 16 total)
  • Author
    Posts

  • millhorn
    Participant

    I’m getting my data from a JSON file. Below is an example of my data:

    [{
      "id": "1",
      "legalName": "Agrawal, Parag",
      "positionName": "Chief Technology Officer",
      "companyName": "Twitter, Inc.",
      "companyStreet": "Market Square, 1355 Market St",
      "companyStreet2": "#900",
      "companyCity": "San Francisco",
      "companyState": "CA",
      "companyZip": "94103",
      "phone": "(415) 222-9670",
      "email": "parag.agrawal@twitter.com"
    }]

    I’m trying to find a way to combine two different datafields on a single line:

            $("#contacts_table").jqxGrid({
              sortable: true,
              theme: 'srpmic',
              width: '99.8%',
              height: '630px',
              pageable: false,
              source: dataAdapterCEU,
              selectionMode: 'none',
              filterable: true,
              showfilterrow: true,
              groupable: true,
              columns: [{
                text: 'Company Address',
                dataField: 'companyStreet',
                filtertype: 'input',
                width: '30%',
                cellsRenderer: function (row, column, value) {
                  return <code>companyStreet + companyStreet2</code>
                }
              }]
            });
    

    I can’t find any documentation on this. I found this question, but the answerer doesn’t answer the question. He directs the asker to “Look at the first Grid example on our website. It implements cellsrenderer.”.

    I understand how cellsrenderer works. I don’t understand how to combine 2 datafields in a single cell.

Viewing 16 post (of 16 total)