protected override void SPSRender(HtmlTextWriter writer)
        {
            Debug.WriteLine("SPSRender " + Title);

            _actionGridError.RenderControl(writer);

            if (Config != null)
            {
                if (IsProviding())
                {
                    _gridView.HiligthSelectedRow = true;
                }

                if (_menuTemplate != null)
                {
                    _menuTemplate.RenderControl(writer);
                }

                _gridView.RenderControl(writer);

                //base.Render(writer);
            }
            else
            {
                writer.Write(MissingConfiguration);
            }
        }
Ejemplo n.º 2
0
        protected override void SPSRender(HtmlTextWriter writer)
        {
            Debug.WriteLine("TEST: Render " + Title);

            if (Config == null)
            {
                writer.WriteLine(MissingConfiguration);
            }
            else
            {
                try
                {
                    // Force child controls again
                    EnsureChildControls();

                    // finally render the form view
                    // _actionEditorControl.RenderControl(writer);
                    _button.RenderControl(writer);
                    // Render error control
                    _actionEditorError.RenderControl(writer);
                }
                catch (Exception ex)
                {
                    TrapSubsystemError(this, new SPSErrorArgs("TEST", "Render", ex));
                    DumpException("Render", ex);
                }
            }
        }
Ejemplo n.º 3
0
        protected override void SPSRender(HtmlTextWriter writer)
        {
            try
            {
                if (!_errorBox.HasErrors)
                {
                    if (CheckParameters())
                    {
                        writer.WriteLine("<div><div style='float:left{0}'>", _showTree ? string.Empty : ";display=none");

                        if (_showTree)
                        {
                            _folderExplorer.RenderControl(writer);
                        }

                        writer.WriteLine("</div><div style='float:right;padding-left:{0}'>", _showTree ? "5px" : string.Empty);

                        writer.WriteLine("<!-- Toolbar -->");
                        _toolbar.RenderControl(writer);
                        writer.WriteLine("<!-- End -- ToolBar -->");

                        if (_showBreadCrumb)
                        {
                            _breadCrumb.RenderControl(writer);
                        }

                        writer.WriteLine("<!-- ListView -->");
                        _listViewWP.RenderControl(writer);
                        writer.WriteLine("<!-- End -- ListView -->");

                        writer.WriteLine("</div></div>");
                    }
                    else
                    {
                        writer.Write(MissingConfiguration);
                    }
                }

                _errorBox.RenderControl(writer);
            }
            catch (Exception ex)
            {
                writer.Write(ex);
            }
        }