Dataview load data with different key

I would like to load the dataview with data contains different key other than ‘data’. How to load in the dataview?.
http://webix.com/snippet/0ce873eb
In the above snipplet I used ‘cast’ as a key instead of ‘data’. If the incoming JSON is having the key data, the dataview loads good, but how to load with different key like ‘cast’? can we alter the key name onbeforeload event?

bump

Any help?

A view like ‘dataview’ need a collection of items ( i.e. a js array ).
So either your server send an array, either you use .parse( );

ex:

blob = { result:'ok', cast: [ {id: 1, ...}, {id:2, ...} ] };
$$('myview').parse(blob.cast); 

Thank you. Is it possible to do with load function. Otherwise the above can be done only by ajax call right?

Maybe by using a proxy (http://docs.webix.com/desktop__server_proxy.html), but I would not recommend it unless you have lots of responses with the same format.

Check please:http://webix.com/snippet/4be7021c

You should redefine json DataDriver to create a new datatype. And you will be able to use this during loading as well.

Thank you both.