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!
Also Konstantine, on a separate thread, I had posted another question for which I did got an answer from not from infragistisc team @ http://ko.infragistics.com/community/forums/p/83672/418240.aspx which was causing this tree issue.
Hey again,
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) {}
@*<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>
....
singleBranchExpand:true,
selectionChanged:function (event, ui) {
},
childDataProperty:'MainSubjectAreas',
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',
textKey:'Label',
valueKey:'Id',
childDataProperty:'Categories',
textKey:'CategoryName',
valueKey:'CategoryId'
dataSource: data.SubjectAreas,
selectionChanged: function (event, ui) {
This will also correctly initialize the singleBranchExpand property.
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?