Hi there!
Is there a way to hide some rows in my grid (for example, adding some php code or using built-in SC macros in onRecord event) without changing the main sql statement? For example, in my case i have this grid:
1 Anna 0 2 0 2
2 Alexa 0 0 0 0
3 Mike 0 0 1 0
If here are all zeros in columns after name (and it can be checked with php in onRecord event) - i want to hide/remove this row (in this example, row with Alexa have to be removed)
So, it have to be finally:
1 Anna 0 2 0 2
3 Mike 0 0 1 0
Yes, you can tell me - just change your main sql! But in this particular case i can’t do it.
If i will hide this rows with js/jquery, there will be some problems with pagination, searching and so on. I would like to do this without js.
I know about “sc_field_display” macro, but it will hide field, not the row. But we don’t have “sc_row_display” macro…Any thoughts?