/// <summary>
 /// Creates a control-list item.
 /// </summary>
 /// <param name="childControls">The item content.</param>
 /// <param name="id">The ID of the item. This is required if you're adding the item on an intermediate post-back or want to remove the item on an
 /// intermediate post-back. Do not pass null.</param>
 /// <param name="updateRegionSet">The intermediate-post-back update-region set that this item will be a part of.</param>
 /// <param name="removalUpdateRegionSet">The intermediate-post-back update-region set that this item's removal will be a part of.</param>
 public ControlListItem(IEnumerable <Control> childControls, string id, UpdateRegionSet updateRegionSet = null, UpdateRegionSet removalUpdateRegionSet = null)
 {
     ChildControls          = childControls;
     Id                     = id;
     UpdateRegionSet        = updateRegionSet;
     RemovalUpdateRegionSet = removalUpdateRegionSet;
 }
Beispiel #2
0
 internal PreModificationUpdateRegion(UpdateRegionSet set, Func <IEnumerable <Control> > controlGetter, Func <string> argumentGetter)
 {
     this.set            = set;
     this.controlGetter  = controlGetter;
     this.argumentGetter = argumentGetter;
 }
 /// <summary>
 /// Creates an item-insertion update region.
 /// </summary>
 /// <param name="set"></param>
 /// <param name="newItemIdGetter">A method that executes after the data modification and returns the IDs of the new item(s).</param>
 public ItemInsertionUpdateRegion(UpdateRegionSet set, Func <IEnumerable <string> > newItemIdGetter)
 {
     Set             = set;
     NewItemIdGetter = newItemIdGetter;
 }
 /// <summary>
 /// Creates a control-list item.
 /// </summary>
 /// <param name="childControls">The item content.</param>
 /// <param name="updateRegionSet">The intermediate-post-back update-region set that this item will be a part of.</param>
 public ControlListItem(IEnumerable <Control> childControls, UpdateRegionSet updateRegionSet = null)
 {
     ChildControls   = childControls;
     UpdateRegionSet = updateRegionSet;
 }
 /// <summary>
 /// Creates a naming placeholder. Add all child controls now; do not use AddControlsReturnThis at any time.
 /// </summary>
 /// <param name="childControls"></param>
 /// <param name="updateRegionSet">The intermediate-post-back update-region set that this naming placeholder will be a part of.</param>
 public NamingPlaceholder(IEnumerable <Control> childControls, UpdateRegionSet updateRegionSet = null)
 {
     this.childControls   = childControls.ToArray();
     this.updateRegionSet = updateRegionSet;
 }