Question 1
Is serverPaging, serverSorting and serverFiltering officially supported with javascript notation?
Question 2
To enable serverPaging, serverSorting and serverFiltering through javascript the dataSource schema must be changed to:
schema: {
data: "data",
total: "total"
}
Here
is our previous schema which enabled us to define default values and specify types, how do we combine the two:
schema: {
model: {
id: "TransactionID",
fields: {
TransactionID: { editable: false, nullable: true, defaultValue : "00000000-0000-0000-0000-000000000000"
},
TicketNumber: {type: "string" },
//TransactionTypeDesc: { type: "string",editable: false,
defaultValue: "Fuel" },
StatusName: {type: "string" },
Departure_Date: { type: "date"},
Arrival_Date: {type: "date"},
FlightNumber: { type: "string" },
AircraftName: {type: "string" },
TerminalAndGate: { type: "string" },
AirlineName: {type: "string", defaultValue: { AirlineID: 1,
AirlineName: "135 Airways"} },
DestinationAirportCode: { type: "string", defaultValue: { LocationID:1, AirportCode: "ATL"} },
ArrivalAirportCode: { type: "string", defaultValue: { LocationID: 1, AirportCode: "ATL"} },
ShipNumber: { type: "string" },
TailNumber: { type: "string" },
Product: { type: "string" },
FuelQuantity: { type: "string" },
Temperature: { type: "string" },
Density: { type: "string" },
StartTotalizer: { type: "string" },
StopTotalizer: { type: "string" },
TotalGallons: { type: "string" },
FuelEquipment: { type: "string" },
Fueler: { type: "string" },
InOpGuage: { type: "string" },
Supplier: { type: "string" },
StartTime: { type: "string" },
EndTime: { type: "string" },
FuelCaps: { type: "string" },
Notes: { type: "string" }
}
}
}