Advanced User Interface Controls and Components

IntegralUI Web

Documentation and API Reference

removeItemAt(index, parent)

Removes an item at specified position in TreeView widget.


indexIntegerThe indexed location within the collection to remove an item from
parent (optional)ObjectThe parent item from which an item will be removed

Return Value

This method does not return a value.

Version Information

Supported in: v1.0.


In this example we are showing how to use removeItemAt method to remove an item at position 1. In this case because parent item is not specified, the item will be removed from root items collection. If there is no item at specified position, nothing will happen.

$(document).ready(function() {

// Create an instance of TreeView widget

var $tree = $('#treeview').treeview();


$tree.treeview("removeItemAt", 1);


<!DOCTYPE html>



<link rel="stylesheet" href="css/integralui.treeview.css" />

<link rel="stylesheet" href="css/themes/theme-blue.css" />

<script type="text/javascript" src="external/jquery-1.9.1.min.js"></script>

<script type="text/javascript" src="external/jquery.ui.core.min.js"></script>

<script type="text/javascript" src="external/jquery.ui.widget.min.js"></script>

<script type="text/javascript" src="js/jquery.integralui.widget.min.js"></script>

<script type="text/javascript" src="js/jquery.integralui.treeview.min.js"></script>



<div id="treeview" class="widget">







<li data-expanded=false><span>Item23</span></li>



<li data-expanded=false><span>Item232</span>












<li data-expanded=false><span>Item3</span></li>













width: 300px;

height: 300px;



See Also