Datatable 1.10.1 breaking on scrollY
Datatable 1.10.1 breaking on scrollY
 marinicg            
            
                Posts: 5Questions: 2Answers: 0
marinicg            
            
                Posts: 5Questions: 2Answers: 0            
            I'm applying the latest version of datatables to my system and as soon as I add "scrollY":"300px" to the parameters, my datatable crashes and I can't load any data.
This is the way I'm loading datatables:
$('#dataGrid').dataTable
    (
        {
            "jQueryUI": true,
            //"scrollY": "200px",
            "scrollCollapse": true,
            "paging": true,
            "ajax": {
                "url": "loadAllusersJson.php",
                "type": "POST",
                "data": function(d)
                {
                    d.url_origem = "userDataView";
                    d.opcao = "selecionar";
                    d.dataOutput = null;
                },
                "dataSrc": ""
            },
            "columns": [
                { "data": "nome_usuario" },
                { "data": "nome_login" },
                { "data": "perfil" },
                { "data": "email" },
                { "data": "status" },
                { "data": "sessao" },
                { "data": "comando" }
            ],
            "language":
            {
                "processing": "Buscando informações...",
                "lengthMenu": "Mostrar MENU usuários por página",
                "zeroRecords": "Nenhum registro encontrado",
                "info": "Página PAGE de PAGES",
                "infoEmpty": "Não existem registros disponíveis",
                "infoFiltered": "(Encontrados de MAX registros)",
                "search": "Procurar:",
                "infoPostFix":    "",
                "loadingRecords": "Buscando informações...",
                        "emptyTable":     "Não existem registros disponíveis",
                "paginate":
                {
                    "first":      "Primeira",
                    "previous":   "Anterior",
                    "next":       "Próxima",
                    "last":       "Última"
                },
                   },
            "lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "Todos"]],
        }
    );
When I remove // from "scrollY"everything stops to work.
I'm using JQUERY 1.11.1 / JQUERY-UI 1.8.5
Does anyone had the same error?
Thanks
This question has an accepted answers - jump to answer
Answers
Please link to a test case showing the error, as per the forum rules, so we can investigate the problem and offer some help.
Allan
Hey Allan, thanks for the reply.
I found the problem. It was jquery-ui old version that was breaking the scrollY parameter.
I managed to solve it.
Thanks again.