View Full Version : Hiding Row/Data in Grid that grows

22 Sep 2014, 10:43 AM
I have a grid that grows when a user adds checks different check boxes.
I want to for speed purposes hide the row if they deselect the grid.
The problem I am having is that if I hide the row with the addRowCls('hidden') when new data is added the index of the rows change then showing some of the rows that are supposed to be hidden.

How can I accomplish this task.
I have also tried filtering the store but that did not seem to work.

22 Sep 2014, 10:01 PM
I'm not sure I totally follow what you're looking to do without seeing your code, but what about setting the row height to 0 instead of 'hidden'?

24 Sep 2014, 9:32 AM
I am not sure if this would solve the problem because the problem is that row index always changes when data is added or removed. So if i change the height or add the hidden class to row at index 5 and then I add data to the grid the row at index 5 is not the same row anymore.