protected override void AddParsedSubObject(object obj)
 {
     if (!ListControlUtil.AddParsedSubObjectReplacement(this, obj))
     {
         base.AddParsedSubObject(obj);
     }
 }
 public override void DataBind()
 {
     base.DataBind();
     ListControlUtil.AddExtendedListItemProperties(this);
     ListControlUtil.InsertFixedItems(this);
     ClearSelection();
 }
 protected override void AddAttributesToRender(HtmlTextWriter writer)
 {
     ListControlUtil.AddExtendedSelectControlAttributesToRender(this, writer);
     if (!Logic.StringEmpty(clientChange))
     {
         Attributes["onchange"] += ";" + clientChange + ";";
     }
     base.AddAttributesToRender(writer);
 }
 protected override void AddParsedSubObject(object obj)
 {
     try
     {
         if (!ListControlUtil.AddParsedSubObjectReplacement(this, obj))
         {
             base.AddParsedSubObject(obj);
         }
     }
     catch (Exception ex)
     {
         if (obj is LiteralControl)
         {
             throw new Exception(String.Format("Error while trying to add a literal with text: '{0}'", ((LiteralControl)obj).Text), ex);
         }
         throw new Exception("Error while trying to add subobject of type " + obj.GetType().FullName, ex);
     }
 }
 public override void DataBind()
 {
     base.DataBind();
     ListControlUtil.InsertFixedItems(this);
 }
示例#6
0
 protected override void RenderContents(HtmlTextWriter writer)
 {
     ListControlUtil.RenderSelectOptions(this, writer);
 }
示例#7
0
 protected override void AddAttributesToRender(HtmlTextWriter writer)
 {
     ListControlUtil.AddExtendedSelectControlAttributesToRender(this, writer);
     base.AddAttributesToRender(writer);
 }
示例#8
0
 protected override void OnDataBinding(EventArgs e)
 {
     base.OnDataBinding(e);
     ListControlUtil.AddExtendedListItemProperties(this);
     ListControlUtil.InsertFixedItems(this);
 }
 protected override void OnDataBinding(EventArgs e)
 {
     base.OnDataBinding(e);
     ListControlUtil.InsertFixedItems(this);
 }