This question is locked. New answers and comments are not allowed.
King Wilder
Top achievements
Rank 2
King Wilder
asked on 09 Feb 2010, 01:40 AM
Version: 2009.3.1314.35
I'm presently building an application using ASP.NET MVC 2 RC1, and while the editor doesn't generate an error, it loads into the page without any toolbars and there is no text area.
I'm not completely discarding the chance that my CSS might be conflicting with the editor. Is that possible? Is there a way to check it?
Do you have any other ideas why the editor isn't rendering properly?
Thanks,
King Wilder
I'm presently building an application using ASP.NET MVC 2 RC1, and while the editor doesn't generate an error, it loads into the page without any toolbars and there is no text area.
I'm not completely discarding the chance that my CSS might be conflicting with the editor. Is that possible? Is there a way to check it?
Do you have any other ideas why the editor isn't rendering properly?
Thanks,
King Wilder
9 Answers, 1 is accepted
0
Hello King,
I have created a test project in order to replicate the depicted issue. For your convenience I have attached a test project which implements the required functionality.
Greetings,
Georgi Krustev
the Telerik team
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
I have created a test project in order to replicate the depicted issue. For your convenience I have attached a test project which implements the required functionality.
Greetings,
Georgi Krustev
the Telerik team
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
King Wilder
Top achievements
Rank 2
answered on 10 Feb 2010, 02:06 AM
Georgi,
I downloaded your example and it works. Mine still doesn't.
It's weird, when I look at the source create by yours, it starts out like this:
When I look at the source mine creates, these are the same four lines, but they are different:
If I look at the source in Firefox, it tells me that there are lots of formatting errors with the ID's starting with a number instead of a character. I think this must be the issue and I suspect it's due to my CSS, but I don't think I can make radical changes to my CSS at this point.
Can you tell me how this ID is generated? Maybe I can track down what is causing this if I know how it's generated.
Also, another strange thing is that if I move the RadScriptManager to my MasterPage, I get the error that the control must have a ScriptManage on the page before the control. If I move the RadScriptManager to my UserControl with the form fields, the page renders, but the editor is garbled.
I've used the RadEditor in an ASP.NET MVC v1 project, but this is the first v2 MVC project I'm building. I don't really think it's the MVC version.
Any further insight on this is appreciated.
Thanks,
King Wilder
I downloaded your example and it works. Mine still doesn't.
It's weird, when I look at the source create by yours, it starts out like this:
| <div id="ctl00_MainContent_RadEditor1" class="RadEditor Default reWrapper " style="width:680px;height:400px;"> |
| <!-- 2009.3.1314.35 --> |
| <div id="ctl00_MainContent_RadEditor1_dialogOpener" style="display:none;"> |
| <div id="ctl00_MainContent_RadEditor1_dialogOpener_Window" style="display:none;"> |
| <div id="ctl00_MainContent_RadEditor1_dialogOpener_Window_C"> |
When I look at the source mine creates, these are the same four lines, but they are different:
| <div id="4_Body" class="RadEditor Telerik reWrapper " style="height:236px;width:508px;"> |
| <!-- 2009.3.1314.35 --> |
| <div id="4_Body_dialogOpener" style="display:none;"> |
| <div id="4_Body_dialogOpener_Window" style="display:none;"> |
| <div id="4_Body_dialogOpener_Window_C"> |
If I look at the source in Firefox, it tells me that there are lots of formatting errors with the ID's starting with a number instead of a character. I think this must be the issue and I suspect it's due to my CSS, but I don't think I can make radical changes to my CSS at this point.
Can you tell me how this ID is generated? Maybe I can track down what is causing this if I know how it's generated.
Also, another strange thing is that if I move the RadScriptManager to my MasterPage, I get the error that the control must have a ScriptManage on the page before the control. If I move the RadScriptManager to my UserControl with the form fields, the page renders, but the editor is garbled.
I've used the RadEditor in an ASP.NET MVC v1 project, but this is the first v2 MVC project I'm building. I don't really think it's the MVC version.
Any further insight on this is appreciated.
Thanks,
King Wilder
0
Hello King Wilder,
Please give us more details about how are you using RadEditor in your project. Pasting all the relevant code here would be of great help.
Regards,
Atanas Korchev
the Telerik team
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Please give us more details about how are you using RadEditor in your project. Pasting all the relevant code here would be of great help.
Regards,
Atanas Korchev
the Telerik team
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
King Wilder
Top achievements
Rank 2
answered on 10 Feb 2010, 04:46 PM
Atanas,
Thanks for your help.
I've attached a zip file with, probably more files than what you need. Here's what I've included:
I still think its a conflicting CSS issue. I'll try to track down the problem, but if you find anything, I'd love to hear what you find.
Let me know if you have any other questions.
Here's the location of the zip file. http://www.gizmobeach.com/downloads/king_wilder_rad_editor_files.zip
Thanks,
King Wilder
Thanks for your help.
I've attached a zip file with, probably more files than what you need. Here's what I've included:
- screenshot of the Edit Story page in the browser
- MasterPage
- Edit View
- StoryFormControl.ascx that is in the Edit and Create views, that contains the form fields
- and all the CSS
I still think its a conflicting CSS issue. I'll try to track down the problem, but if you find anything, I'd love to hear what you find.
Let me know if you have any other questions.
Here's the location of the zip file. http://www.gizmobeach.com/downloads/king_wilder_rad_editor_files.zip
Thanks,
King Wilder
0
King Wilder
Top achievements
Rank 2
answered on 10 Feb 2010, 09:30 PM
I tried an experiment and I wrapped your project example with all the CSS, MasterPage and markup from my site and the RadEditor works and is displayed correctly!
So there is something else conflicting its rendering in my application. I'll try tracking it down. If you can think of something though, I'd love to hear it.
Thanks,
King Wilder
So there is something else conflicting its rendering in my application. I'll try tracking it down. If you can think of something though, I'd love to hear it.
Thanks,
King Wilder
0
King Wilder
Top achievements
Rank 2
answered on 10 Feb 2010, 09:38 PM
Ok, I was able to re-create my issue with your sample application. It seems that the RadEditor doesn't like being in a UserControl.
In my application I have a user control with the Form fields, and in the parent view, either the create.aspx, or the edit.aspx view, I have the user control using RenderPartial.
I'll play with this a little and see if I can figure out what it doesn't like.
Are there any known issues with this?
Thanks,
King Wilder
In my application I have a user control with the Form fields, and in the parent view, either the create.aspx, or the edit.aspx view, I have the user control using RenderPartial.
| <% Html.BeginForm("Edit", "Story", FormMethod.Post, new { @class = "search_form general_form" }); %> |
| <% Html.RenderPartial("StoryFormControl", Model.Story); %> |
| <% Html.EndForm(); %> |
I'll play with this a little and see if I can figure out what it doesn't like.
Are there any known issues with this?
Thanks,
King Wilder
0
King Wilder
Top achievements
Rank 2
answered on 10 Feb 2010, 09:47 PM
Ok, the latest verdict (with my limited knowledge) is that the RadEditor renders fine in a view (.aspx) but doesn't like being in a UserControl (.ascx).
If you find how to make this work, I'd love to hear it.
Thanks,
King Wilder
If you find how to make this work, I'd love to hear it.
Thanks,
King Wilder
0
Hi King Wilder,
This is a known issue related with the MS Ajax and its inability to parse CSS and Javascript. Please review http://www.telerik.com/help/aspnet-ajax/mvc-limitations.html for more information.
Greetings,
Georgi Krustev
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.
This is a known issue related with the MS Ajax and its inability to parse CSS and Javascript. Please review http://www.telerik.com/help/aspnet-ajax/mvc-limitations.html for more information.
Greetings,
Georgi Krustev
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
King Wilder
Top achievements
Rank 2
answered on 11 Feb 2010, 05:29 PM
I understand. I made it work by simply copying the forms fields from the UserControl into the Create and Edit view pages, and it works.
It's not DRY, but it works.
Thanks,
King Wilder
It's not DRY, but it works.
Thanks,
King Wilder