protected void RepeaterBudgetOwners_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.DataItem == null) { return; } AccountBudgetLine line = (AccountBudgetLine)e.Item.DataItem; Label labelBudgetOwner = (Label)e.Item.FindControl("LabelChildBudgetOwner"); labelBudgetOwner.Text = line.AccountOwner; HiddenField hiddenAccountId = (HiddenField)e.Item.FindControl("HiddenAccountId"); hiddenAccountId.Value = line.AccountIdentity.ToString(); RadToolTip toolTip = (RadToolTip)e.Item.FindControl("ToolTip"); Controls_v4_PersonDetailPopup personDetail = (Controls_v4_PersonDetailPopup)toolTip.FindControl("PersonDetail"); personDetail.PersonChanged += new EventHandler(PersonDetail_PersonChanged); if (!Page.IsPostBack && _authority != null) { personDetail.Authority = _authority; personDetail.Person = line.Account.Owner; personDetail.Account = line.Account; } // this.TooltipManager.TargetControls.Add(labelBudgetOwner.ClientID, line.AccountIdentity.ToString(), true); }
protected void RepeaterTextBoxes_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.DataItem == null) { return; } AccountBudgetLine line = (AccountBudgetLine)e.Item.DataItem; TextBox textBudget = (TextBox)e.Item.FindControl("TextChildBudget"); textBudget.Style[HtmlTextWriterStyle.TextAlign] = "right"; textBudget.Style[HtmlTextWriterStyle.Width] = "150px"; HiddenField hiddenAccountId = (HiddenField)e.Item.FindControl("HiddenAccountId"); hiddenAccountId.Value = line.AccountIdentity.ToString(); // RIDDLE: What is textBudget.Text here? if (_initializingBudgets) { textBudget.Text = line.AccountBudgetString; } }