Hi,

so i found why my code was not working...basically i found the reason but
not how to walkaround it for now.
in fact my data cells (2nd table) is loaded with a getJSON data collection
(as you can see below):
$.getJSON("lg.php",{ start: 0, offset : 10 },
        function(data)
                {
                    $.each(data.records, function(i,item){
                        $("#tabbody").append("<tr><td>"+ item.id+"</td><td>"+
item.abbreviation + "</td><td>"+ item.description+"</td></tr>");
                    });
        });

so when after that i run:
Grid_Colunns_Resize($("#frm_table"), $("#data_grid"));
it is understood (and i do not know how to solve that) that #tabbody does
not contains tr or td elements...

if i replace the whole getJSON function by a simple:
$("#tabbody").append("<tr><td>ID</td><td>Language</td><td>description</td></tr>");
in this case my code works perfectly.

any idea how to avoid such issue ?
thanks.

A.

Reply via email to