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

You can add tooltip using the Properties HashTable.

So in your case it will be

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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