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);
});
}
Hi there,
Could you please provide us with a little more information about this issue. A small sample reproducing it would be very useful. Thanks a lot in advance!
I'm glad I was able to help!
What you could do is look at the changelog that jQuery have on their website for each version. However this can only infer potential issues. Also the jQuery ui website has such. Look for major changes like namespacing and deprecation of methods. Those are usually the ones that affect code based on jQuery and jQuery ui the most. Stackoverflow is also a good source for issues and solutions. We also document all issues discovered in our help docs. In most cases however we are trying to fix these rather than document them.
Thank you for your patience!
Thank you Konstantin, it worked!
Yes, now with JQUery 1.9.x it works everytime. Is there any place where I can find a list of issues like this when some upgrades JQuery version other then one on which Ignite is based?
Hey again,
This is what I meant, but I assume from the config that I am seeing that you've put the event handler inside the bindings object. It should rather be on a top level like this:
$("#treeView").igTree({
initialExpandDepth: 1,
dataSourceType:'json',
bindings: {
textKey:'MainLabel',
valueKey:'MainId',
childDataProperty:'MainSubjectAreas',
textKey:'Label',
valueKey:'Id',
childDataProperty:'Categories',
textKey:'CategoryName',
valueKey:'CategoryId'
},
dataSource: data.SubjectAreas,
singleBranchExpand:true,
selectionChanged: function (event, ui) {
This will also correctly initialize the singleBranchExpand property.
@*<script src="@Url.Content("~/Scripts/jquery-1.7.1.js")"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.8.20.js")"></script>*@
<script src="@Url.Content("~/Scripts/jquery-1.9.1.js")"></script>
<script src="~/Scripts/jquery-ui-1.10.3.custom.min.js"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.10.3.custom.js")"></script>
....
selectionChanged:function (event, ui) {
We do support the new versions of jQuery but it's not uncommon to have some behaviors not functioning properly. There are cases where we miss some functionality as it's hard to cover every scenario with every version of jQuery. We are fixing any issues that are discovered. I will ask you to try and add the event handler directly in the tree configuration. Let me know if this makes it fire every time. Meanwhile I will look why the way you attach it makes it fire only once.
selectionChanged: function (event, ui) {}