Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Clicking on the expand icon
Hi, when clicking on the expand button in the tree, two things happen in this order:
1. An OnClick event is generated
2. An OnItemExpand event is generated.
In the OnClick event, param1 contains the key of the node that belongs to the expand button.
Is there a way for me to know in the OnClick event that the OnClick event was generated by clicking on the expand button?
I need to know this, as clicking on the expand button and clicking on the node are two different use cases in my app.
I am using the latest version of the control.
1. An OnClick event is generated
2. An OnItemExpand event is generated.
In the OnClick event, param1 contains the key of the node that belongs to the expand button.
Is there a way for me to know in the OnClick event that the OnClick event was generated by clicking on the expand button?
I need to know this, as clicking on the expand button and clicking on the node are two different use cases in my app.
I am using the latest version of the control.
Comments
I do have a workaround as well.
thanks
Good idea, I will try it.
@KevinFourier
Each node in the tree has products associated with it. When you click on a node, its products are loaded in the grid to the right of the tree. However, a node can have children. When expanding, i want to see the children of the node, not load the products of the node. So i don't think that ExpandBehaviour will work.
Basically, I am trying to mimic the windows file browser. A directory has files (products), but it can also have sub-directories (children)
I will try don's idea. I think it will work.