I'm trying to solve a problem here. I think it's easy, but I'm not as intimate with javascript yet. Next: I have a Javascript array that has some information I need, such as name and title (eg: John, Higher Education) The first time I call the screen, all data is loaded and filled into that array. But when I click on a button with a certain titration, it needs to load all the teachers that contain that same titration and mount a grid. What I need, basically is to make a foreach and filter out all the teachers that contains that particular titration. Here is the structure of the function:
function carregarDadosJ(titulacao) {
var dataSource = data.forEach(titulacao);
$("#divDadosDocentes").kendoGrid({
dataSource: dataSource,
selectable: true,
change: onChange,
height: 750,
filterable: true,
columns: [{
field: "Nome",
title: "Nome",
width: 200
}]
});
};