Hi all,
We are using Infragistics UltraWebTree in one of our projects and we are getting some issues now.We have a Tree1_NodeClicked() event attached to the UltraWebTree which has some business logic inside it.
Now, when users do some randomly fast clicks on the Tree nodes, we are getting some errors since the business logic is not fully completed,but before that user have clicked different nodes.
Lets say when user clicks on a tree node 1, we should be not able to click on any other tree node until the Tree1_NodeClicked() eventis fully completed for it.
So, how can we achieve this functionality in UltraWebTree and prevent the random clicks?
Thanks in advance!
Hello,
A possible solution would be to use a global variable to check if the event handler code is completed. For example:
var completed;
function Tree1_NodeClicked() {
if (completed) {
completed = false;
//your logic goes here
completed = true;
}
Let me know if this helps.
Please note that UltraWebTree is outdated and no longer supported. I would suggest you to upgrade to our new toolset: http://es.infragistics.com/community/blogs/taz_abdeali/archive/2011/11/17/asp-net-product-changes-in-2011-volume-2.aspx
Hi,
I'm just checking if you need any further assistance with the matter.
Hi,Actually, the node clicked event is in server side along with the business logic.How to prevent the multiple clicks from server side?Thanks!