This question is locked. New answers and comments are not allowed.
Hi
I'll start by saying my Javascript isnt amazing :)
I am trying to rebind 2 grids when a row from another is selcted. Here is my code
function onRowSelected(e) {
var notes = $('#notes').data('tGrid');
var clients = $('#clients').data('tGrid');
id = e.row.cells[0].innerHTML;
// update ui text
$('#id').text(id);
// rebind the related grid
notes.rebind({ id: id });
clients.rebind({ id: id });
}
in this case only the notes grid rebinds
if i swap the last two lines round like so
clients.rebind({ id: id });
notes.rebind({ id: id });
only the clients grid rebinds
cananyone help please?
Thanks in advance
I'll start by saying my Javascript isnt amazing :)
I am trying to rebind 2 grids when a row from another is selcted. Here is my code
function onRowSelected(e) {
var notes = $('#notes').data('tGrid');
var clients = $('#clients').data('tGrid');
id = e.row.cells[0].innerHTML;
// update ui text
$('#id').text(id);
// rebind the related grid
notes.rebind({ id: id });
clients.rebind({ id: id });
}
in this case only the notes grid rebinds
if i swap the last two lines round like so
clients.rebind({ id: id });
notes.rebind({ id: id });
only the clients grid rebinds
cananyone help please?
Thanks in advance