The following method is used for setting item label in the TreeGrid:
treegrid.setLabel(val); // new label value