Is there a possibility to aggregate the grid schema dat aon the fly with ajax? I tested ist with a function but it didn't work.
i.e.:
It seems not to work cause if the data format, i guess ... any idea?
in the grid object:
schema: getSchema()
the function:
function getSchema()
{
var dataReturn;
$.ajax({
url: "/ajax/listen/getschema",
success: function(data){
console.log(data);
dataReturn = eval( "("+ data +")");
},
error: function(data){
console.log(data.responseText);
},
complete: function(jqXHR, textStatus){
console.log(jqXHR);
console.log(textStatus);
}
});
return dataReturn;
}
i.e.:
It seems not to work cause if the data format, i guess ... any idea?
in the grid object:
schema: getSchema()
the function:
function getSchema()
{
var dataReturn;
$.ajax({
url: "/ajax/listen/getschema",
success: function(data){
console.log(data);
dataReturn = eval( "("+ data +")");
},
error: function(data){
console.log(data.responseText);
},
complete: function(jqXHR, textStatus){
console.log(jqXHR);
console.log(textStatus);
}
});
return dataReturn;
}