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

[Solved] Using RadControls with Dynamic Data Website

2 Answers 122 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Susan
Top achievements
Rank 1
Susan asked on 07 Sep 2009, 03:13 AM
Hello All!

I LOVE my RAD Controls on my normal asp.net pages.  They have greatly changed the way I work, for the better!

I am just beginning an adventure into a "Dynamic Data Website" and all the freedom of having LINQ do the work for me, and am having difficulty using my precious controls in that environment. 

For instance, the RadEditor displays well enough, but the <ImageManager> and other editor items cause a web.config error even though my web.config does display the Telerik items. While the Editor displays and does capture the text, it is only saving plain text, not the text as formatted within the control ** I HAVE READ all the posts on this site concerning web.config errors with the DialogHandler, and HAVE tried the various fixes with aspx vs axd extension in the web.config, but they have not worked. **

Other controls simply error.  I put the control on the aspx page (a custom page in the CustomPages folder in a "Dynamic Data Website"), and on the vb code behind page I get a message that the control has not been declared.

Since it's a pretty consistent 'non starter' using my controls within a Dynamic Data site, I am sure I am missing something global rather than something specific to one control or the other.

I know there must be a way to register these controls to work properly within the framework of a Dynamic Data website - LINQ and the ability to scaffold all tables is just too cool to be ignored, but upon searching this forum specifically for issues related to Dynamic Data sites I am not finding any results, and I am at a loss of what to try next.  I suspect it's that I am just too much of a newbie, so please be as specific as possible in your replies.

I am using the 2009.Q2 controls for asp.net 3.5, with a Dynamic Data Website generated in VS2008, with scaffoldAllTables set to true.  I am doing CustomPages where I want to use my Awesome Rad Controls. :)

Thank you for your time.  I appreciate Telerik's attention to helping us!

Susan 

2 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 09 Sep 2009, 01:13 PM
Hi Susan ,

Make sure that your web.config has the following two HTTP Handler definitions:

(for IIS 6)
<add verb="*" path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/> 
<add verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/> 
 

(for IIS 7)
<add name="Telerik.Web.UI.SpellCheckHandler.axd_*" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0"/> 
<add name="Telerik.Web.UI.DialogHandler.axd_*" path="Telerik.Web.UI.DialogHandler.axd" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0"/> 
 

Also, set the RadEditor property DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.axd". This should fix the issues you are having.

The solution above is discussed in point 4 in the following KB article: http://www.telerik.com/support/kb/aspnet-ajax/editor/error-web-config-registration-missing-the-telerik-dialogs-require-a-httphandler-registration-in-the-web-config-file.aspx

As to the plain text saving problem, please make sure that you are not obtaining the RadEditor content throught the Text property of the control. You should use the Content property in order to obtain the content with its HTML markup.


Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Susan
Top achievements
Rank 1
answered on 09 Sep 2009, 11:40 PM
THANK YOU RUMEN!

Actually the part of your comment that I was missing was the very last sentence.  I had neglected to change the RadEditor.Text to RadEditor.Content on the code behind page of the MultilineText-Edit.ascx.  That did the trick for the editor.  I will play with the other controls shortly, I just wanted to stop and tell you that it worked!  Thank you for giving me my controls within a Dynamic Data site!  The editor was the make it or break it control I really needed :).

Thanks again for your wonderful Telerik support! 

If any one is thinking that all controls are created equal, they are misled.  The controls are only as good as the support system and -- once again -- you (and Telerik) have exceeded my expectations.  It's for this reason that I plan to continue my subscription year after year with Telerik.  WONDERFUL!  Thank you again!
Tags
General Discussions
Asked by
Susan
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Susan
Top achievements
Rank 1
Share this question
or