Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Nicolay Giraldo on Mar 18, 2009 12:48
open dhtmlx forum
Needed Features of dhtmlxTree

I'm evaluating DhtmlxTree for using it in a application we are developing.

Currently I need the following features:

Select and Highlight a node based on custom attributes of the node, like for example feature_id and product_id, and callable from other frames of the webpage.
That means, a method like
dhtmlXTreeObject.prototype.SelectNodeCustom=function(feature_id, product_id) ... (etc.)

A quadstate checkbox control, with the following states: checked, not checked, ignored, disabled (with customizable graphics).
This with custom form names for each of the checkbox controls.

We truly hope this tree control can meet our needs and ease our development time.

Regards,

--
Nicolay Giraldo L.
Software Developer

BPR - ISI Emerging Markets
Phone: +57 1 616 68 88 Ext. 214
Skype: nicolay.giraldo
Answer posted by Alex (support) on Mar 19, 2009 04:58

>> Select and Highlight a node based on custom attributes of the node, like for example feature_id and product_id, and callable from other frames of the webpage.

Unfortunately, there are noready method to get the item id by the attribute of this item. It is necessary to check all tree nodes if they contain the necessary attribute:

- to get a list of all tree ids:

var list = tree.getAllSubItems(0) 

-  - to attribute value:

var value = tree.getAttribute(id,name);

>> A quadstate checkbox control, with the following states: checked, not checked, ignored, disabled (with customizable graphics).

Tree supports 3-states checkboxes: checked, not checked, partially checked. Moreover checkbox can be disabled:

tree.disableCheckbox(id,1);

In order to use combination [checked, not checked,ignored] instead of [checked, not checked, partially checked], you can change iconCheckGray.gif to the necessary:

tree.checkArray = new Array("iconUncheckAll.gif","iconCheckAll.gif","iconCheckGray.gif","iconUncheckDis.gif","iconCheckDis.gif","iconCheckDis.gif");

To enable 3-state mode somethiong as follows can be used:

tree.enableCheckBoxes(1);

tree.enableThreeStateCheckboxes(1);

tree.enableSmartCheckboxes(0);