I'm using an customized SPTreeView (UserControl) embed on the masterpage, any ideas how to set the selectedNode that correspond to the contextWeb or using another approach?
spregards
|
I'm using an customized SPTreeView (UserControl) embed on the masterpage, any ideas how to set the selectedNode that correspond to the contextWeb or using another approach? spregards |
||||
|
|
|
That's little tricky.. Let's assume you have following binding for your SPTreeview
Then, in PreRender, you need to set the SelectedNodePath as shown below
|
|||
|
|
using TreeView instead of SPTreeView:
|
|||
|
|