error in data while using getallsubitems

I have scenario where in while using getallsubitems() is returning all the items , instead of returning sub items for that parent alone.

var w_Liminum=callProjlimnum();
if(w_Liminum!=“0”)
{
gridLimits_v.enableDragAndDrop(false);
var w_child=gridLimits_v.getAllSubItems(parseInt(w_Liminum));

Please, make sure that your parseInt(w_Liminum) returns valid id of your dhtmlxTreeGrid.
If any issue still occurs please, provide with a complete demo or share with a demo link, where the problem can be reconstructed.