Skip to main content
15-Moonstone
November 12, 2021
Question

Best approach to have checkbox with name in a tree hierarchy only for the child elements

  • November 12, 2021
  • 2 replies
  • 3377 views

Hello ,

I have a data source with parent child relation.

Eg:

Fruits

      True,Orange

      False,Apple

Vegetables

      False,Potato

      False,Tomato

 

I should allow the user to select few fruits and few vegetables. What would be the best approach to achieve it.

I tried with Advanced Tree Grid but i could not get the checkbox to be in the first column from the positioning in the settings.

1. What can i do to get the check box appear in the first column.

2. If there is any better approach with other available widgets. 

Thingworx version 9.1.5

 

Thanks

              

2 replies

Community Manager
November 19, 2021

Hi @sbt.

 

You could try using the List widget and turn on multiselect in the properties.  If there's more to the use case that needs to be considered, please provide some additional detail.

 

Regards.

 

--Sharon

sbt15-MoonstoneAuthor
15-Moonstone
November 19, 2021

I can use list widget if i have just a general list. But i cannot have drill down of parent and child in that where just child can be selected.

Below image just for info.

sbt_0-1637348137953.png

Thank you!

16-Pearl
December 7, 2021

I'm not aware that you can prevent the user to select some entries and some not. Do you really need a checkbox?

Normaly we just use the "selected style" to mark that the user selected an entry:

nmutter_2-1638911563991.png

For sure he can also select "Fruit" but this we have to filter in our service.