Beispiel #1
0
        public void InstantiateIn(Control container)
        {
            PlaceHolder templatePlaceHolder = new PlaceHolder();

            container.Controls.Add(templatePlaceHolder);

            Literal div = new Literal();

            div.Text = "<div id=\"EditorContainer\">";

            Obout.Ajax.UI.HTMLEditor.Editor editor1 = new Obout.Ajax.UI.HTMLEditor.Editor();

            templatePlaceHolder.Controls.Add(div);
            templatePlaceHolder.Controls.Add(editor1);

            editor1.ID = "Editor1";
            editor1.TopToolbar.Appearance = Obout.Ajax.UI.HTMLEditor.EditorTopToolbar.AppearanceType.Lite;
            editor1.Width  = 450;
            editor1.Height = 270;

            Literal enddiv = new Literal();

            enddiv.Text = "</div>";

            templatePlaceHolder.Controls.Add(enddiv);
        }
        public void DataBindTemplate(object sender, EventArgs e)
        {
            PlaceHolder    templatePlaceHolder = sender as PlaceHolder;
            DetailsViewRow row  = templatePlaceHolder.Parent.Parent as DetailsViewRow;
            SuperForm      form = row.Parent.Parent as SuperForm;

            Obout.Ajax.UI.HTMLEditor.Editor editor1 = templatePlaceHolder.Controls[0] as Obout.Ajax.UI.HTMLEditor.Editor;
            if (form.DataItem != null)
            {
                editor1.Content = DataBinder.Eval(form.DataItem, "AdditionalInformationHTML").ToString();
            }
        }
        public void InstantiateIn(Control container)
        {
            PlaceHolder templatePlaceHolder = new PlaceHolder();
            container.Controls.Add(templatePlaceHolder);

            Obout.Ajax.UI.HTMLEditor.Editor editor1 = new Obout.Ajax.UI.HTMLEditor.Editor();

            templatePlaceHolder.Controls.Add(editor1);

                 
            editor1.ID = "Editor1";
            editor1.TopToolbar.Appearance = Obout.Ajax.UI.HTMLEditor.EditorTopToolbar.AppearanceType.Lite;
            editor1.EditPanel.ContextMenu.Style[HtmlTextWriterStyle.ZIndex] = "3000";
            editor1.Width = 550;
            editor1.Height = 300;
   
            templatePlaceHolder.DataBinding += new EventHandler(DataBindTemplate);
        }
        public void InstantiateIn(Control container)
        {
            PlaceHolder templatePlaceHolder = new PlaceHolder();

            container.Controls.Add(templatePlaceHolder);

            Obout.Ajax.UI.HTMLEditor.Editor editor1 = new Obout.Ajax.UI.HTMLEditor.Editor();

            templatePlaceHolder.Controls.Add(editor1);


            editor1.ID = "Editor1";
            editor1.TopToolbar.Appearance = Obout.Ajax.UI.HTMLEditor.EditorTopToolbar.AppearanceType.Lite;
            editor1.Width  = 450;
            editor1.Height = 270;


            templatePlaceHolder.DataBinding += new EventHandler(DataBindTemplate);
        }
        public void InstantiateIn(Control container)
        {
            PlaceHolder templatePlaceHolder = new PlaceHolder();

            container.Controls.Add(templatePlaceHolder);

            Obout.Ajax.UI.HTMLEditor.Editor editor1 = new Obout.Ajax.UI.HTMLEditor.Editor();

            templatePlaceHolder.Controls.Add(editor1);


            editor1.ID = "Editor1";
            editor1.TopToolbar.Appearance = Obout.Ajax.UI.HTMLEditor.EditorTopToolbar.AppearanceType.Lite;
            editor1.EditPanel.ContextMenu.Style[HtmlTextWriterStyle.ZIndex] = "3000";
            editor1.Width  = 550;
            editor1.Height = 300;

            templatePlaceHolder.DataBinding += new EventHandler(DataBindTemplate);
        }
        public void InstantiateIn(Control container)
        {
            PlaceHolder templatePlaceHolder = new PlaceHolder();
            container.Controls.Add(templatePlaceHolder);

            Literal div = new Literal();
            div.Text = "<div id=\"EditorContainer\">";

            Obout.Ajax.UI.HTMLEditor.Editor editor1 = new Obout.Ajax.UI.HTMLEditor.Editor();

            templatePlaceHolder.Controls.Add(div);
            templatePlaceHolder.Controls.Add(editor1);

            editor1.ID = "Editor1";
            editor1.TopToolbar.Appearance = Obout.Ajax.UI.HTMLEditor.EditorTopToolbar.AppearanceType.Lite;
            editor1.Width = 450;
            editor1.Height = 270;

            Literal enddiv = new Literal();
            enddiv.Text = "</div>";

            templatePlaceHolder.Controls.Add(enddiv);
        }
        public void InstantiateIn(Control container)
        {
            PlaceHolder templatePlaceHolder = new PlaceHolder();
            container.Controls.Add(templatePlaceHolder);

            Obout.Ajax.UI.HTMLEditor.Editor editor1 = new Obout.Ajax.UI.HTMLEditor.Editor();

            templatePlaceHolder.Controls.Add(editor1);


            editor1.ID = "Editor1";
            editor1.TopToolbar.Appearance = Obout.Ajax.UI.HTMLEditor.EditorTopToolbar.AppearanceType.Lite;
            editor1.Width = 450;
            editor1.Height = 270;


            templatePlaceHolder.DataBinding += new EventHandler(DataBindTemplate);
        }