简体   繁体   中英

Kendo Dynamic Grid

I try to create a dynamic grid based on dummy data first called dataSourceMatrix . Grid load fine with dummy data's without any error and display the grid. But when I try to read the data from kendo dataSource it display nothing. Both data's return a same result. Any idea why?

Here a full demo for my situation

You seem to have no dateFields , so parseFunction is undefined, and therefore not callable.

Try this way:

parseFunction = function (response) {
    if (dateFields.length >= 0) {
        for (var i = 0; i < response.length; i++) {
            for (var fieldIndex = 0; fieldIndex < dateFields.length; fieldIndex++) {
                var record = response[i];
            }
        }
    }
    // console.log(response);
    return response;
};

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM