getItemNode
returns HTML element of the item
HTMLElement getItemNode(id|object id);
| id | id|object | data item ID or an object with item's position |
| HTMLElement | HTML element of the item |
Example
var node = mylist.getItemNode(123);
node.innerHTML = "some text";
Details
Datatable and treetable
specificity:
- the item ID as number - the method returns the HTML element of the first cell in a row with this ID:
$$("mydatatable").getItemNode(2);
- the item ID as object that contains data item ID and column ID - the method returns
the HTML element of a cell with these row and column IDs:
$$("mydatatable").getItemNode({ row: 2, column:"title"});
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support,
connect with other developers, and share your feedback there.