Cant make any sense still, cause i have another project where i create a custom tree just like my code above, and it doesn't have ID (NodeID) attribute filled out. And it works without any problems.
I think the problem was that the tree was rendering the same nodes on top of each other when loading it the second time. It would probably be a good idea to add IDs to your other project as well ;)
Hi I have the same problem, tryed to use 'add an ID to your newOrder, etc.', but the .id don't exist. tryed with .NodeID, but do not solder the problem.
Custom tree and section - Text duplicate issue
Hi Everyone
Hope you can help me solve this issue, i have created 2 new section with custom trees,
But when i press the section link the tree nodes of that section duplicates its self, i have no clue to what the problem is.
Screendump
Code
BaseTree
{
application) :
(application) { }
rootNode)
{
rootNode.Icon = FolderIcon;
rootNode.OpenIcon = FolderIconOpen;
rootNode.NodeType =
+ TreeAlias;
rootNode.NodeID =
;
}
Tree)
{
);
NewProduct.Text =
;
NewProduct.Icon =
;
NewProduct.Action =
;
NewProduct.Menu =
;
// Add the node to the tree
(Tree.treeCollection.Contains(NewProduct))
{
}
else
{
Tree.Add(NewProduct);
}
);
EditProduct.Text =
;
EditProduct.Icon =
;
EditProduct.Action =
;
EditProduct.Menu =
;
// Add the node to the tree
(Tree.treeCollection.Contains(EditProduct))
{
}
else
{
Tree.Add(EditProduct);
}
}
Javascript)
{
Javascript.Append(
@"
function openAddProducts() {
parent.right.document.location.href = 'Plugins/products/addProduct.aspx';
}
"
);
Javascript.Append(
@"
function openEditProducts() {
parent.right.document.location.href = 'Plugins/products/editProduct.aspx';
}
"
);
Database
Hi Kasper,
Can I get you to put the code in a code block like:
It makes a little easier to get an overview of your code.
Thanks,
- Morten
here you go :) hope it helps me find a solution.
I have 2 Tree nodes classes
loadOrdersTreeNodes.cs
loadProductsTreeNodes.cs
Hi Kasper,
Can you try to add an ID to your newOrder, waitingOrders, OldOrders etc. before adding them to the tree?
Something like:
- Morten
Hi Morten
Thank you very much!!!, it fixed my problem :D
Cant make any sense still, cause i have another project where i create a custom tree just like my code above, and it doesn't have ID (NodeID) attribute filled out. And it works without any problems.
Again Thank you...
Best Regards
Kasper L
Cool! Glad it worked :)
I think the problem was that the tree was rendering the same nodes on top of each other when loading it the second time.
It would probably be a good idea to add IDs to your other project as well ;)
- Morten
Hi
I have the same problem, tryed to use 'add an ID to your newOrder, etc.', but the .id don't exist. tryed with .NodeID, but do not solder the problem.
I am using umbraco 4.5.2 with .net4.0
-Anker
Forget my larst post, it is working now.
I have a problem with the Random string.
-Anker
is working on a reply...