Three state checkboxes in dhtmlxtreegrid

I am trying to implement the three state checkboxes with the dhtmlxtreegrid. I have implemented several examples from the dhtmlxtree with the dhtmlxtreegrid , but am unable to get it to work. Any ideas on this?

dhtmlxTree and dhtmlxTreeGrid are separate component. The second is extension built around dhtmlxGrid and has different API and different functionaltiy.
dhtmlxTreeGrid doesn’t support 3 state checkboxes.