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

Web Config and custom provider

5 Answers 114 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Bruce St.Clair
Top achievements
Rank 2
Bruce St.Clair asked on 25 Jul 2008, 04:11 PM
I am testing the scheduler and think I have everything figured out but the web.config is giving me fits. 

Here is my build error
Unrecognized configuration section telerik.web.ui. C:\Development\WebAppt2\web.config 83 

Here is the link to my web.config
http://update.timsforaudiology.com/bruce/web.zip

VS2008
3.5 .net
Telerik  2008 Q2 version

I would be greatful for any help in what I am doiing wrong

5 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 28 Jul 2008, 12:28 PM
Hi Bruce,

The web.config looks good. Can you open a support ticket and send us a working project demonstrating the problem? This way we will be able to find more quickly what's going on .  


Best wishes,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Bruce St.Clair
Top achievements
Rank 2
answered on 28 Jul 2008, 02:40 PM
Peter

I would love to submit a ticket but my support days are long over due.  I tested Telerik awhile back but we decided to stick with infragistics, not my choice for sure.  We are now replacing Infragistics and I am testing Telerik and DevExpress to see what each has to offer.  My task is to duplicate a single page we have now, but using different controls, to see how the different controls work, server load, etc..

 I am using a custom schedule provider per your sample.  I figured out the web.config, needed to move it down one more line.  But ran into another problem with the config.

<

add name="ReadOnlySchedulerData" type="WebAppointments.DayProvider" persistChanges="false"/>

This line wants a connection string. My schedule provider has all the connection info and the connection string changes depending on who logs in.  When a user logs in, I set some varibles in session state to fill in some of the blanks of the connection string so I cant have a set connection statement in my web config.  Is there anyway around not having a connection string in the web config with Telerik?

0
Peter
Telerik team
answered on 28 Jul 2008, 03:32 PM

Thank you for considering Telerik controls.

You can set the Provider property of RadScheduler from code-behind. I guess, one possible solution for this case is to register multiple providers in the web.config and then based on the current user to dynamically specify the provider for RadScheduler. Let us know what you think.



Sincerely yours,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Bruce St.Clair
Top achievements
Rank 2
answered on 28 Jul 2008, 04:04 PM
Peter

  Coulld you supply a little snippet of how I would set the provider from code behind?
0
Bruce St.Clair
Top achievements
Rank 2
answered on 28 Jul 2008, 07:00 PM
Peter,

 I tried defining the provider in code behind before I posted the first time.  BUt my reading skill need some work, since I was using ProviderName instead of Provider.  Passed that step now onto the next one thanks.
Tags
Scheduler
Asked by
Bruce St.Clair
Top achievements
Rank 2
Answers by
Peter
Telerik team
Bruce St.Clair
Top achievements
Rank 2
Share this question
or