jQWidgets Forums

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts

  • danny7139
    Participant

    There isn’t an equivalent.

    {
        "OrderID": 10248
        "CustomerID": "VINET",
        "EmployeeID": 5,
        .
        .
        .
      }

    Than you would set the id in the dataAdapter :

    var ordersSource =
                {
                    datafields: [
                        { name: 'OrderID', type: 'string' },
                        { name: 'EmployeeID', type: 'string' },
                        { name: 'ShipName', type: 'string' },
                        { name: 'ShipAddress', type: 'string' },
                        { name: 'ShipCity', type: 'string' },
                        { name: 'ShipCountry', type: 'string' },
                        { name: 'ShippedDate', type: 'date' }
                    ],
                    datatype: "json",
                    url: orderdetailsurl,
                    id: "OrderID",
                    async: false
                };

    At least that’s how I set a unique ID.

Viewing 1 post (of 1 total)