How to prevent an item from being opened

clock September 28, 2015 15:09 by author htmltreegrid


Is there way I can cancel an expand or collapse icon click based on a condition ? We need to stop a user from expanding or collapsing the grid based on value.


Sure, please use the itemOpening event.

alert('Sorry, cant open');
$(document).ready(function () {
var grid = new flexiciousNmsp.FlexDataGrid(document.getElementById("gridContainer"),

configuration:'<grid id="grid" enableDynamicLevels="true" itemOpening="flexiciousNmsp.onItemOpening" >' +
'        <level  enableFooters="true" ' +
'   childrenField="children">' +

Full example below



InnerLevelWrapText.html (5.20 kb)

How to change the base images path

clock September 23, 2015 14:02 by author htmltreegrid


I noticed there is a hardcoded path to some images in the minified JS – this is causing the pager bar buttons to have no images.  


Where can I customize the path used by the images in the toolbar?


Please set value of 

flexiciousNmsp.Constants.IMAGE_PATH to the folder you have stored all the images in.

For example

flexiciousNmsp.Constants.IMAGE_PATH=" ";


Its important to set this in the right place. The ideal place to set this is after the minified-compiled-jquery script but BEFORE the themes.js file:Something like this

<script type="text/javascript" src=""></script>
<script type="text/javascript">
<script type="text/javascript" src=""></script>

Below is the complete text case

TwoGrids.html (4.39 kb)