Open e-designer opened 9 years ago
Hi,
I've had the same issue and I did like this :
$(".tree tr").on("click", function(event){ $(this).treegrid('toggle'); });
When the user click on the table row, the tree expand / collapse !
it like that $(".tree>tbody>tr>td:first-child").on("click", function(event){ var tr = $(this).parent(); $(tr).treegrid('toggle'); });
Hi - I'm not very familiar with JS - how do I implement this? Where do I have to place the code? Thanks for help. Frank
@perlfan2009 you put it where you init your treegrid. Here an example:
<script type="text/javascript">
$(document).ready(function() {
$('.tree').treegrid();
$(".tree tr").on("click", function(event){
$(this).treegrid('toggle');
});
});
</script>
It's hard to target the glyph in small devices (small screen). Is there any way to be clickable all the word to expand the subtrees?.
Tnx Chris