Using a Data Provider That is Not XML

4 posts, 0 answers
  1. Don
    Don avatar
    17 posts
    Member since:
    Aug 2010

    Posted 12 Oct 2010 Link to this post

      I have been working on creating a Data Provider by following the instructions under: Implementing a provider that supports multivalued resources. I am now ready to use it. However the only documentation that I have found is the article on Using a Data Provider which only describes how to use an XML file for a provider.  I have tried adapting it but I obviously don't know my way around the web.config enough to finesse it into working.  Are there other directions that I am missing?
     The Data Provider I created uses a SQL database and is named ACMESchedulerProvider.
     I am using RadControls for ASP.NET AJAX Q2 2010 NET35.

    Thanks!

    Don

  2. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 13 Oct 2010 Link to this post

    Hi Don,

    Please take a look at the demo about using a Database Provider. In the description you can find the needed settings in web.config file.

    Feel free to ask me if you have further questions.

    Regards,
    Veronica Milcheva
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Don
    Don avatar
    17 posts
    Member since:
    Aug 2010

    Posted 13 Oct 2010 Link to this post

    Thanks for the response, I need a little more clarification though.  Are you saying that I need to drop the following code into my web.config:

    <telerik.web.ui>
           <radScheduler defaultAppointmentProvider="Integrated">
               <appointmentProviders>
                   <add name="ReadOnlySchedulerData" type="Telerik.Web.Examples.Scheduler.MyDbSchedulerProvider"
                       connectionStringName="TelerikConnectionString"
                       persistChanges="true" />
               </appointmentProviders>
           </radScheduler>
       </telerik.web.ui>

    I did this and tried to configure it with my name, type, and ConnectionStringName but I immediately get an error:
    ----------------------------------

    Parser Error Message: Unrecognized configuration section telerik.web.ui.

    Line 27:

    <telerik.web.ui>

     --------------------------------

     

    Ideas?
    Thanks,
    Don
  5. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 14 Oct 2010 Link to this post

    Hello Don,

    The problem is in that the registration of the section group with name="telerik.web.ui" is missing in your web.config file in the <configSections>:

    <sectionGroup name="telerik.web.ui">
          <section name="radScheduler" type="Telerik.Web.UI.RadSchedulerConfigurationSection, Telerik.Web.UI, PublicKeyToken=121fae78165ba3d4" allowDefinition="MachineToApplication" requirePermission="false"/>
        </sectionGroup>

    Best Regards,
    Veronica Milcheva
    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