public override void DataBind()
        {
            if (EditUpdateButton.Updating)
            {
                EditUpdateButton.UpdateBinding(this);
            }
            base.DataBind();
            string v = EditUpdateButton.DataBindValue(this);

            if (MakeDefault0)
            {
                SelectedValue = v == "" ? "0" : v;
            }
            else
            {
                SelectedValue = v;
            }
            if (AssociatedRowId.HasValue())
            {
                var tr = this.Parent.Parent as HtmlTableRow;
                if (tr != null && tr.ID == AssociatedRowId)
                {
                    tr.Visible = v.HasValue() || Editing;
                }
            }
        }
        public override void DataBind()
        {
            if (EditUpdateButton.Updating)
            {
                EditUpdateButton.UpdateBinding(this);
            }
            //base.DataBind();
            switch (MaskType)
            {
            case MaskTypes.Phone:
                Text = EditUpdateButton.DataBindValue(this).FmtFone();
                break;

            case MaskTypes.Zip:
                Text = EditUpdateButton.DataBindValue(this).FmtZip();
                break;
            }
            if (AssociatedRowId.HasValue())
            {
                var tr = this.Parent.Parent as HtmlTableRow;
                if (tr != null && tr.ID == AssociatedRowId)
                {
                    tr.Visible = Text.HasValue() || Editing;
                }
            }
        }
Example #3
0
 public override void DataBind()
 {
     base.DataBind();
     Text = EditUpdateButton.DataBindValue(this);
     if (FormatString.HasValue())
     {
         Text = FormatString.Fmt(Text);
     }
 }
Example #4
0
 public override void DataBind()
 {
     base.DataBind();
     if (BindingFormat.HasValue())
     {
         Text = BindingFormat.Fmt(EditUpdateButton.DataBindObject(this));
     }
     else
     {
         Text = EditUpdateButton.DataBindValue(this);
     }
     NavigateUrl = DataBindUrl();
 }
        public override void DataBind()
        {
            if (EditUpdateButton.Updating)
            {
                EditUpdateButton.UpdateBinding(this);
            }
            //base.DataBind();
            bool ck;

            if (!bool.TryParse(EditUpdateButton.DataBindValue(this), out ck))
            {
                ck = false;
            }
            Checked = ck;
        }
Example #6
0
 public override void DataBind()
 {
     if (EditUpdateButton.Updating)
     {
         EditUpdateButton.UpdateBinding(this);
     }
     //base.DataBind();
     SetTextValue(EditUpdateButton.DataBindValue(this));
     if (AssociatedRowId.HasValue())
     {
         var tr = this.Parent.Parent as HtmlTableRow;
         if (tr != null && tr.ID == AssociatedRowId)
         {
             tr.Visible = Text.HasValue() || Editing;
         }
     }
 }
Example #7
0
 public void SetEditUpdateButton(EditUpdateButton bt)
 {
     EditUpdateButton = bt;
 }
Example #8
0
 public void SetEditUpdateButton(EditUpdateButton bt)
 {
     EditUpdateButton = bt;
 }
Example #9
0
 private static void RegisterEditButtonExtracted(IDisplayOrEdit from, EditUpdateButton bt)
 {
     from.SetEditUpdateButton(bt);
     bt.RegisterControl(from);
 }
Example #10
0
 private static void RegisterEditButtonExtracted(IDisplayOrEdit from, EditUpdateButton bt)
 {
     from.SetEditUpdateButton(bt);
     bt.RegisterControl(from);
 }