Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip or Hide Row in bvbgrid #893

Open
udgeet opened this issue Feb 22, 2014 · 3 comments
Open

Skip or Hide Row in bvbgrid #893

udgeet opened this issue Feb 22, 2014 · 3 comments

Comments

@udgeet
Copy link

udgeet commented Feb 22, 2014

If value of specific field is NULL in Row then i have to skip whole row associated with this field value. How to achieve this in bvbgrid.

@imonteiro
Copy link
Member

Hi,

You can't do this in your query?

@udgeet
Copy link
Author

udgeet commented Feb 24, 2014

Well,
I can change in query but it's too too complex because i have to use rollup and total of all column values and hide the row having associated null valued column . so if there's some functionality in grid to hide whole row based on some specific column it would be better.

@imonteiro
Copy link
Member

Isn't the perfect solution, but for now you can achieve this using $grid->addClassRowCondition() to hide to row by css:
http://stackoverflow.com/questions/1144123/how-can-i-hide-an-html-table-row-tr-so-that-it-takes-up-no-space

I would prefer achieve this using SQL query. You can SUM based on a subquery... but it will depend of what you want. I found this two topics:
http://stackoverflow.com/questions/8757061/sumsubquery-in-mysql
http://stackoverflow.com/questions/7562873/sum-a-subquery

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants