Dear support,
A strange thing that I’ve just seen, and I would like your opinion in order to know what I should check:
-> let’s say I have 2 grids, with a sort of “interaction”; if a user check an item in the grid “A” and that the same value exists in the grid “B” (let’s say there is the value “animal” in the two grids), so the item in the grid “B” will be checked too.
I just use functionnality like getValue(), findCell(), setValue(), etc … but nothing more complex.
The problem now is that if I use a #text_filter to filter the grid “B”, the checked items are “lost” -> they become unchecked.
I don’t see clearly what’s happening…
Thanks
Regards.
How are you checking cell in the grid B? Does that cell is checkbox or do you select that cell using selectCell() method? Could you please send us any king of sample where we can reproduce this issue?
Yes, I’m really talking about checkboxes and the event “onCheck”, which contains simply something like:
var cell = gridA.findCell( gridB.cells(rowId, 0).getValue(),0,‘first’ );
if (cell!=null){
gridA.cells(cell[0][0],1).setValue(state?“1”:“0”);
}
Now, I see that everytime I use a #text_filter to filter the gridA, every checkboxes that have been checked by the preceding method become unchecked.
Similar issue was fixed at the lates dhtmlxGrid version. Please try to use attached patch.
srnd_filter_patch.zip (521 Bytes)
Dear support,
That’s perfect !, the problem is solved.
Thank you for your fast and good answer, it’s helping me much.
vinc.