Hi, we have a requirement where we want to stop our org chart from allowing to drill down any further from certain boxes.
The data will be coming from user profile service so ideally we would like to have a condition that if department equals a certain value then hide both options to drill down to subordinates. Is this possible?
This will hide the "Drill here" button from all the boxes that include "Marketing" in the Department field. Of course, you can modify this condition any way you want.
Please consider learning more about the onBoxRendered JavaScript event in this article.
This works great, and done exactly what I needed, however I am struggling to hide the small expanding arrow that’s at the bottom of the box. This will then prevent further drill down to anyone under that employee.
How would this be accomplished?
Thanks again. The I’ll is great and currently in the process of purchasing as soon as we have approvals in place. It fills a massive gap for us.
Hi @lquigg ,
just like before, you can manipulate the css of any element directly with the JavaScript framework and the box object.
You can add one line in the code I've providen above:
The box.$elem[0].nextElementSibling will give you the DOM object of the expanding "plus" button.
As a result, the expand button will be hidden in all the "Marketing" department employees: