I am trying use KendoUI javascript library to implement a web dashboard. I have implemented the view functions by getting data from a XML web service and it all works well. But got stuck when I try to introduce edit features.My KendoGrid's datasource schema is as
Since i have to map the XML tags to fields in the model fields, how should I specify parameters like editable, nullable or validations. Documentation doesn't provide any help on this. Samples are like below but they only talk about json transports.
I want to combine the both worlds and don;t have a clue on how to do that.
Any help would be great...
schema: { type: "xml", data: "/xmlResponse/Contacts/Contact", model: { id: "NameSequence", fields: { name: "Name/text()", phoneNumber: "PhoneNumber/text()", email: "Email/text()", nameSequence: "NameSequence/text()" } } }Since i have to map the XML tags to fields in the model fields, how should I specify parameters like editable, nullable or validations. Documentation doesn't provide any help on this. Samples are like below but they only talk about json transports.
schema: { model: { id: "ProductID", fields: { ProductID: { editable: false, nullable: true }, ProductName: { validation: { required: true } }, UnitPrice: { type: "number", validation: { required: true, min: 1} }, Discontinued: { type: "boolean" }, UnitsInStock: { type: "number", validation: { min: 0, required: true } } } }I want to combine the both worlds and don;t have a clue on how to do that.
Any help would be great...