Smart UI Components & Libraries – Grid, Scheduler, Gantt, Kanban for Angular, React, Next.js, Vue, Blazor, JavaScript › Forums › General Discussions › Smart Tree dataset attributes Tagged: writing. Thesis writing. This topic has 1 reply, 2 voices, and was last updated 1 year, 8 months ago by Markov. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts March 5, 2024 at 2:16 am #109918 Hazwani RazakParticipant Hi, I would like to add some dataset attributes to smart tree nodes using the datasource, how can I do that? If cannot, how do I loop through all the nodes to assign attributes? March 5, 2024 at 12:47 pm #109921 MarkovKeymaster Hi, You can use document.querySelectorAll(‘smart-tree-item’); and loop through the collection of nodes const items = document.querySelectorAll('smart-tree-item'); [].forEach.call(items, function(item) { // do whatever }); Regards, Markov Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In With Google Log In