how do you auto collapse panel if no result is found (see attached)?
try adding this in the search node in the simple xml of your panel. use depends="$hide$" in the panel node:
<condition match="'job.resultCount' > 0">
View solution in original post