Need Tree View structure like component

Certified Associate Developer

Hello All,

 

We have a requirement to provide tree view like component as shown in the attached image to users. As we all know appian doesn't provide any such components as of now, I implemented some logic using richtextfield,checkbox and sidebyside component to accomplish this functionality. The problem we are having with this approach is related to performance. It takes significant amount of time to check and uncheck particular item, As the design includes recursion of loops. Also it includes various operations like when user selects the parent item then all the child item inside it is getting checked. Similarly if any child item is being unchecked then parent is also getting unchecked. Is there a way to accomplish such functionality in more efficient manner? Or is there an alternative to this use case? Any suggestion here would be highly appreciated. Thanks in advance

 

 

  Discussion posts and replies are publicly visible

Parents
  • Hey Viveku0001,

    I've built a similar component for a client before, though not identical. I would recommend maintaining a list of the selected indices at the top level rule, and using that list to determine the selected state of the checkbox.

    However, If I'm not misunderstanding the quoted statement, then it seems as though you wouldn't need this component at all, and could just allow the user to select the Continent. This statement makes me believe you would only ever be able to select all or none of the children within Asia, North America, South America, and/or Europe.

    "Also it includes various operations like when user selects the parent item then all the child item inside it is getting checked. Similarly if any child item is being unchecked then parent is also getting unchecked."

    Thanks,
    Jake
  • 0
    Certified Associate Developer
    in reply to jacobm579
    Hi Jake,

    Thanks for your reply. My quoted statement is basically a part of tree view control in any other language. In short, I need tree view controls which enables the user to perform exactly the same functionality which Tree view control has. Be it like multi level selection or deselection etc
Reply Children
No Data