I have a grid that is getting its data from XML. I want to define types (numeric, date, etc.) on the fields. How do I do this? I've tried defining my model fields like CARD: { value: 'CARD/text()', type: 'number' } but that doesn't seem to work.
var xml = '<ROWS><ROW id="1"><CARD>1</CARD><LLINE>1</LLINE></ROW><ROW id="2"><CARD>1</CARD><LLINE>2</LLINE></ROW></ROWS>';$(document).ready(function() { $('#gridDiv').kendoGrid({ columns: [ { field: 'CARD', title: 'Card', width: 60 },{ field: 'LLINE', title: 'Line', width: 60 } ], dataSource: new kendo.data.DataSource({ type: 'xml', data: xml, schema: { type: 'xml', data: '/ROWS/ROW', model: { id: 'id', fields: { id: '@id', CARD: 'CARD/text()', LLINE: 'LLINE/text()' } } } }) });});