I have a QxTree that has about 50 QxTreeFile items in 11 QxTreeFolder objects. I am initially setting one of the QxTreeFile items to selected via setSelected(true). This works and when I display the tree that item is showing as selected. The issue is that when I select another item, the first one does not un-select. If I click on that item then click on another it then un-selects. I tried to set the focus of the selected item to true but that did not help. Is there some little thing I can do to fix this problem, or is it going to need a code fix?
I was just now running the code listed below and noticed an exception does come up yet the item still gets selected. Here is the exception:
001531:Failed to execute "_modifySelected()":Modification of property "selected" failed with exception('_fastUpdate' is null or not an object)
Thanks,
Jim
here is a quick demo to show you what I am talking about:
window.application.main = function()
{
var T = new QxTree("Main");
for (var x=0; x<5;x++)
{
var F = new QxTreeFolder("Folder " + x);
for (var y=0; y<6; y++)
{
var I = new QxTreeFile("File " + x + y);
if ((x == 2) && (y == 3))
I.setSelected(true);
F.add(I);
}
T.add(F);
}
this.add(T);
}
{
var T = new QxTree("Main");
for (var x=0; x<5;x++)
{
var F = new QxTreeFolder("Folder " + x);
for (var y=0; y<6; y++)
{
var I = new QxTreeFile("File " + x + y);
if ((x == 2) && (y == 3))
I.setSelected(true);
F.add(I);
}
T.add(F);
}
this.add(T);
}
