How can I map an attribute of an XML data source to a Kendo UI model?
I explained my problem here:
http://stackoverflow.com/questions/15273312/mapping-grid-column-fields-to-xml-attributes-via-php-wrapper
But got now answer.
Thanks and best regards.
Florian
2 Answers, 1 is accepted
0
Vladimir Iliev
Telerik team
answered on 20 Mar 2013, 08:57 AM
Hi,
This happens because your PHP code is not equivalent to the JS one - the JavaScript code has "@" in front of the field names whereas PHP doesn't. Try adding @:
$codeField = new \Kendo\Data\DataSourceSchemaModelField('@code');
$codeField->type('string');
Kind Regards,
Vladimir Iliev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!