protected override void OnFormBound() { base.OnFormBound(); if (IsActivating) { Form.Reset(Controls); CurrDateValue.Timeless = Activity.Timeless; CurrDateValue.DisplayTime = !Activity.Timeless; CurrDateValue.DateTimeValue = Activity.StartDate; CompDateValue.Timeless = Activity.Timeless; CompDateValue.DisplayTime = !Activity.Timeless; CompDateValue.DateTimeValue = Activity.StartDate; GenerateGrid(); Session[ACTSTARTDATEKEY] = null; } StartDateComparison = Activity.StartDate; //save the startdate before binding to see if it gets changed if (ClientBindingMgr != null) { ClientBindingMgr.RegisterBoundControl(CurrDateValue); ClientBindingMgr.RegisterBoundControl(CompDateValue); } UpdateActivity.Enabled = Form.IsSaveEnabled; }
protected override void OnFormBound() { AvailableMembers.Attributes.Add("ondblclick", string.Format("var btn = document.getElementById('{0}'); if (btn) {{ btn.click(); }}", Add.ClientID)); SelectedMembers.Attributes.Add("ondblclick", string.Format("var btn = document.getElementById('{0}'); if (btn) {{ btn.click(); }}", Remove.ClientID)); base.OnFormBound(); if (IsActivating) { Form.Reset(Controls); } PopulateMemberListBoxes(); Form.Secure(Controls); }