Hi,
We are dynamically adding root folders, and we noticed that the control sorts it alphabetically. Is there a way to override it so we can control the ordering.
Thanks
Badri
3/24/2009 2:05 PM
Open FileVistaControl\scripts\filevista.js and search for the first occurence of the string "treeNode.sortChildren();"
Cut this string and find few lines later the code block:
//Select first root folder at start
if (treeNode == tree.root && treeNode.childNodes.length > 0) {
treeNode.childNodes[0].select();
}
Paste it just after this code block and add "else" word in front:
else treeNode.sortChildren();
This way only subfolders will be sorted and not the root folders.
Cem Alacayir
3/26/2009 8:54 AM
Thanks, that worked like a charm
Badri
4/1/2009 10:34 PM