Hi All
On the ExplorerBar Item click, we are showing the popup based on some condition the click has to be triggered again. For this I am trying the following
eventargs.get_item().get_element().click()
but It doesn't trigger the event.
Kindly do provide inputs on the same.
Thanks
Chandra.
Hello,
Could you add some more details to what you are doing (including more detailed code snippet) and what is the expected requirement/result. Currently it seems to me you are handling the client event ItemClick and in its handler function you want to trigger the same event again. It seems to me it will end in an infinite loop. I am looking forward more details from you.
I have a global variable to check if the previous opened page is edited or not. if edited then cancel the current event and show the popup to the user. if user chose to save and proceed, then save the data and then set the global variable to false and explicitly trigger the same event again.
tried following but it doesn't trigger the event again
args.getExplorerBarItem().get_element().click()
$(args.getExplorerBarItem().get_element()).find('div')[0]).click()
$(args.getExplorerBarItem().get_anchorElement()).click()
Chandra
Hello,Thank you for the clarification.
Since the WebExplorerBar is actually a wrapped WebDataTree, I suggest it could be required to achieve this using the tree Nodes to be clicked. For example using an approach similar to the following one described here:https://ko.infragistics.com/community/forums/f/ultimate-ui-for-asp-net/91687/possible-to-select-node-via-javascript-so-that-selectionchanging-event-is-triggered
Please let me know how this works for you.