Exemple #1
0
        private void CreatePanelDashboards()
        {
            HeaderParagraph header = new HeaderParagraph();

            header.Text = "Please, choose the dashboards to display:";
            Panel.Controls.Add(header);
            foreach (IDashboard dashboard in Dashboards)
            {
                CheckBoxEx box = new CheckBoxEx();
                box.Text    = dashboard.Title;
                box.ID      = dashboard.ID + "_VisibleBox";
                box.Checked = !dashboard.Settings.Closed;
                box.InputAttributes.Add("dashboardObjName", dashboard.JSObjectName);

                Panel.Controls.Add(box);
                Panel.Controls.Add(LiteralEx.CreateNewLine());
            }


            ButtonEx buttonApply = new ButtonEx();

            buttonApply.Text = "Apply";
            buttonApply.UseSubmitBehavior = false;
            buttonApply.OnClientClick     = JSWindowInstance + ".Apply();";
            Panel.Controls.Add(buttonApply);

            ButtonEx buttonCancel = new ButtonEx();

            buttonCancel.Text              = "Cancel";
            buttonCancel.OnClientClick     = JSWindowInstance + ".Close();";
            buttonCancel.UseSubmitBehavior = false;
            Panel.Controls.Add(buttonCancel);
        }
Exemple #2
0
        /// <summary>
        /// Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.
        /// </summary>
        protected override void CreateChildControls()
        {
            base.CreateChildControls();

            //if (!IsAJAXRequest)
            //    return;

            Layout.Header.AdditionalControls.Add(buttonTimeFrame);
            Layout.Header.AdditionalControls.Add(LiteralEx.CreateSpace(2));
            Layout.Header.AdditionalControls.Add(buttonGraphType);
            Layout.Header.AdditionalControls.Add(LiteralEx.CreateSpace(2));
            Layout.Header.AdditionalControls.Add(buttonZoom);
            Layout.Header.AdditionalControlsWidth = "160px";
        }