Categories | Question details Back To List | ||||||||
Checkboxes & filtering: the checked items become unchecked while filtering 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. Answer posted by dhxSupport on Jun 10, 2009 03:22 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? Answer posted by Sunchaser on Jun 10, 2009 06:13 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. Answer posted by dhxSupport on Jun 10, 2009 06:54 Similar issue was fixed at the lates dhtmlxGrid version. Please try to use attached patch. Attachments (1)
Answer posted by Sunchaser on Jun 10, 2009 09:19 Dear support, That's perfect !, the problem is solved. Thank you for your fast and good answer, it's helping me much. vinc. |