Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
435
Tree on('igtreeselectionchanged',,,, problem
posted

I am having a strange problem. I have a TreePanel function which I call on index page load. Treepanel function is as below:

TreePanel = function (config) {

this.treeDiv = config.treeDiv;

this.actionURL = config.actionURL;

$.getJSON(this.actionURL, null, initTree);

    $(this.treeDiv).on("igtreeselectionchanged", function (sender, eventargs) {

var node = eventargs.selectedNodes[0];

debugger;

        LoadSearch(node);

    });

}

Problem is, this function works only when I run the application first time, next time onwards, it doesn't fire tree selection changed event at all.

 

Parents
  • 435
    posted

    ...

    I forgot 1 thing, it only works when I clear the browser history, but again it only works 1 time. So basically I have to clear brower history everytime I run the application.

Reply Children