RadSiteMapDataSource issue with custom site map providers

2 posts, 0 answers
  1. Anand Nathan
    Anand Nathan avatar
    1 posts
    Member since:
    Mar 2010

    Posted 17 Mar 2010 Link to this post

    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.

  2. Simon
    Simon avatar
    2281 posts

    Posted 18 Mar 2010 Link to this post

    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.

    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.
Back to Top