cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

ThingWorx Navigate is now Windchill Navigate Learn More

Translate the entire conversation x

Single Click event trigger on Tree Widget

KritikaS
4-Participant

Single Click event trigger on Tree Widget

Hello everyone,

I have one Tree widget containing some items for selection. When I double click on any one of the item, a grid is displayed containing a list of devices that are part of that particular selection.

Now I want that this should be possible using single clicked event. But we have only "double clicked" event trigger  available for standard tree widget.

KritikaS_0-1656307714023.png

 

One of the way to do this is creating a customized Tree widget, having a single click event trigger instead of double click.

But by any way is it possible to find an alternate solution for this that doesn't requires creation of a customized widget?? 

 

ACCEPTED SOLUTION

Accepted Solutions
slangley
23-Emerald III
(To:KritikaS)

Hi @KritikaS 

 

You should also have events that originate from the service bound to the tree.  One such event might be SelectedRowChange that will allow you to accomplish your need.

 

If there's something we're not understanding, please let us know.

 

Regards.

 

--Sharon 

View solution in original post

4 REPLIES 4
slangley
23-Emerald III
(To:KritikaS)

Hi @KritikaS 

 

You should also have events that originate from the service bound to the tree.  One such event might be SelectedRowChange that will allow you to accomplish your need.

 

If there's something we're not understanding, please let us know.

 

Regards.

 

--Sharon 

There is no such event on the Tree widget. I have the same problem

 

slangley
23-Emerald III
(To:AP_12519601)

Hi @AP_12519601

 

You didn't indicate the version of ThingWorx you're running, but since you don't have the SelectedRowsChanged event, you can consider these options:

 

JavaScript Customization: If you have access to JavaScript within your application, you can add a click event listener to the Tree widget. This listener can be programmed to trigger the same action as the double-click event when a single click occurs.

 

Check for Configuration Options: Review the configuration settings of the Tree widget in your platform. Some versions may have options to modify event triggers or behaviors that could allow for single-click functionality.

 

Refer to Documentation: For more detailed guidance, consult the official documentation for the Tree widget and Advanced Grids:

If these options do not meet your needs, creating a customized Tree widget may be the only solution to achieve the desired functionality.

 

Regards.

 

--Sharon

slangley
23-Emerald III
(To:KritikaS)

Hi @AP_12519601 

 

Were you able to find a solution?  Were any of the options provided useful?

 

Regards.

 

--Sharon

Announcements


Top Tags