Ajax Sitecore ContentEditor回调和自定义字段类型

Ajax Sitecore ContentEditor回调和自定义字段类型,ajax,sitecore,Ajax,Sitecore,我正在开发一个从LookupEx扩展而来的自定义字段类型。控件的目的是允许用户从下拉列表中进行选择,并根据该选择填充多列表类型的其他字段 public class CascadingDroplink : LookupEx { private const string sourceFieldName = "CascadingDroplink"; protected override void DoRender(System.Web.UI.HtmlT

我正在开发一个从LookupEx扩展而来的自定义字段类型。控件的目的是允许用户从下拉列表中进行选择,并根据该选择填充多列表类型的其他字段

    public class CascadingDroplink : LookupEx
    {
        private const string sourceFieldName = "CascadingDroplink";

        protected override void DoRender(System.Web.UI.HtmlTextWriter output)
        {

        StringBuilder sb = new StringBuilder();
        sb.AppendLine("<script type=\"text / javascript\">");
        sb.AppendLine(" var $j = jQuery.noConflict(); ");
        sb.AppendLine(string.Format(" $j(\"#{0}\").change(function(event) {{ ", this.ID));
        sb.AppendLine(string.Format("scForm.invoke('contenteditor:save', event);"));
        sb.AppendLine(string.Format(" }});"));
        sb.AppendLine("</script>");
        output.Write(sb.ToString());
虽然这样做有效,但内容编辑器会被刷新,多列表字段会用自定义数据源更新,保存并不理想,因为可能存在验证

如何在不调用save的情况下刷新contenteditor,就像该区域位于回调面板中一样

谢谢

scForm.invoke('contenteditor:save', event);