This is a migrated thread and some comments may be shown as answers.

Hide a row in radtreelist using javascript

2 Answers 89 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Joehom
Top achievements
Rank 1
Joehom asked on 09 Jul 2013, 09:17 AM
hi support,
I have go through entire API document, there don't have a API function to hide and show a row, can you give me a advice if I want to hide/show a row in telerik what should I do?

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 10 Jul 2013, 12:37 PM



0
Princy
Top achievements
Rank 2
answered on 10 Jul 2013, 12:45 PM
Hi,

Please take a look into the following code snippet I tried to hide a row in client side button click.

Javascript:
<script type="text/javascript">
    function HideRow() {
        var treeList = $find("<%= RadTreeList1.ClientID %>");
        treeList.get_dataItems()[1]._element.style.visibility = "hidden"; //hiding the second row      
    }
</script>



Tags
TreeList
Asked by
Joehom
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or