This is a migrated thread and some comments may be shown as answers.

RadSiteMapDataSource issue with custom site map providers

1 Answer 56 Views
SiteMap
This is a migrated thread and some comments may be shown as answers.
Anand Nathan
Top achievements
Rank 1
Anand Nathan asked on 17 Mar 2010, 07:08 PM
There seems to be an issue with using the RadSiteMapDataSource and a custom site map provider. The problem is that the datasource control does not take it's default site map provider from the web.config "siteMap" section. Whenever the SiteMapFile property is changed, the Provider is reset to the XmlSiteMapProvider regardless of the system default or whatever was manually set previously.

It has a simple workaround, just manually set the provider in code and after any changes to the SiteMapFile property.

Thanks!

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 18 Mar 2010, 05:37 PM
Hi Anand Nathan,

Indeed RadSiteMapDataSource is designed to instantiate an XmlSiteMapProvider whenever the SiteMapFile property is set. This is so because otherwise the RSMDS control should instantiate a provider it does not know at all and it will not know how to configure it.

If your provider uses the SiteMapFile property of the RSMDS control then your approach of first setting the file and then overriding the XSMP is completely valid.

Greetings,
Simon
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
SiteMap
Asked by
Anand Nathan
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or