1
I’m trying to solve a problem here. I believe it’s easy, but I don’t have as much intimacy with javascript yet. Next: I have a Javascript array that has some information I need, such as name and titration (example: João, Ensino Superior) The first time I call the screen, all data is loaded and populated within this array. But when I click on a button with a certain titration, it needs to load all teachers that contain that same titration and mount a grid. What I need, basically, is to foreach and filter out all the teachers that contain that particular titration. Below is the structure of 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
        }]
    });
};
You can give an example of the data structure of
data? Is Objet? array? Andtitulacaois a string?– Sergio