This is a migrated thread and some comments may be shown as answers.

[Solved] Parsing server data with custom Transport Read

1 Answer 384 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 09 Dec 2014, 07:36 PM
I did implement my own logic to get data from a server with a custom dataSource.Transport.Read function.

When receive the data from the server, every items are strings.  I would like a generic solution to parse those items according to the grid schema / column definition.

For example, I would like a date received as the following string "2014-12-09T14:32:54" to be parsed as a javascript data object.

I know such behavior is probably implemented somewhere in the grid as native dataSource.Transport.Read call to OData / AJAX services will parse the data returned by those services.

How can I implement the same logic for a custom dataSource.Transport.Read function?

Best regards,

Simon

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 11 Dec 2014, 01:43 PM
Hello Simon,

You can define and implement your own schema.parse function and perform the parsing operation inside it.

Regards,
Nikolay Rusev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Simon
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or