I have double checked the installation configuration (web.config add reference, StyleSheetRegistrar, ScriptRegistrar, reference to Telerick.Web.Mvc)
Am I doing something wrong or is this a bug with the beta editor extension?
My Controller code is:
// GET: /Speaker/Edit/5
public ActionResult Edit(int id)
{
var db = new DB();
var aSpeaker = db.Speakers.SingleOrDefault(x => x.SpeakerID == id);
return View(aSpeaker);
}
//
// POST: /Speaker/Edit/5
[HttpPost]
public ActionResult Edit(int id, FormCollection collection)
{
var db = new DB();
var aSpeaker = db.Speakers.SingleOrDefault(x => x.SpeakerID == id);
try
{
UpdateModel(aSpeaker, collection.ToValueProvider());
aSpeaker.WebCopy=System.Web.HttpUtility.HtmlDecode(aSpeaker.WebCopy);
db.SubmitChanges();
string myAction = "Edit" + "/" + id;
return RedirectToAction(myAction);
}
catch
{
return RedirectToAction("Index");
}
}
My View Code is:
<div class="editor-field" >
<%= Html.Telerik().EditorFor(model => model.WebCopy)%>
</div>