Adding Tree node with order

Matthew Butler asked on July 4, 2022 18:45

Is it possible when inserting a treenode to set it to the first position?

I've tried node.SetValue("NodeOrder", 0);

Recent Answers

Liam Goldfinch answered on July 5, 2022 10:48

Hi Matthew,

I believe you need to use the following method on the TreeProvider. Maybe try something like this:

var treeProvider = new TreeProvider(MembershipContext.AuthenticatedUser);

treeProvider.SetNodeOrder(node, 0);
0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.