1

How can we add navigation node description programmatically.

I have this code:

SPNavigationNode MyNav= new SPNavigationNode("Nav Text", "NavUrl", true);
MyNav.Update();               
currentNav.AddAsLast(MyNav);

The arguments only set the Title and the URL, but how do we set the description when we hover over the node?

1 Answer 1

1

You can add tooltip using the Properties HashTable.

So in your case it will be

MyNav.Properties["Description"] = "Nav Text";
MyNav.Update();
1
  • that worked :S sorry.. I was lost in this Jan 29, 2015 at 15:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.