Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (MercuryApplication == null)
            {
                return;
            }


            if (!ContactDateTime.SelectedDate.HasValue)
            {
                ContactDateTime.SelectedDate = DateTime.Now;
            }


            foreach (Client.Core.Reference.ContactRegarding currentContactRegarding in MercuryApplication.ContactRegardingsAvailable(true))
            {
                if (currentContactRegarding.Enabled && currentContactRegarding.Visible)
                {
                    ContactRegarding.Items.Add(CreateRadComboBoxItem(currentContactRegarding.Name, currentContactRegarding.Id.ToString(), false));
                }
            }

            ContactRegarding.AllowCustomText = true;


            if (TelerikAjaxManager != null)
            {
                TelerikAjaxManager.ResponseScripts.Add("setTimeout('EntityContactControl_OnPaint()', 250);");
            }

            return;
        }