Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Onclick of folder structure should prompt an alert message  RSS feed

Foni kumar
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi experts,

Please find below a code I am trying to use for Lazy Loading in javascript of a dijit tree using REST calls. Now I want to perform one operation in my code snippet. The account folder of tree is the parent and it contains child folders as the transactions.

On click of any of the parent folders or child folders of the tree getting populated by lazy loading, it should prompt a message or an alert saying "Hello". Can someone suggest me how can I achieve it ? Please take a look at the below code and suggest your valuable thoughts. I tried the below function but it didn't work

. On adding this line it is prompting the message as in my code on the tree creation time but I want the message to be prompted at the end of the tree creation and on click of folder in tree.

Below Function for OnClick not working one:


Many thanks!!!>
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!