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

Using a Data Provider That is Not XML

3 Answers 98 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 12 Oct 2010, 06:49 PM
  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

3 Answers, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 13 Oct 2010, 03:49 PM
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
0
Daniel
Top achievements
Rank 1
answered on 13 Oct 2010, 06:00 PM

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
0
Veronica
Telerik team
answered on 14 Oct 2010, 12:09 PM
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
Tags
Scheduler
Asked by
Daniel
Top achievements
Rank 1
Answers by
Veronica
Telerik team
Daniel
Top achievements
Rank 1
Share this question
or