BGcolor property

Last post 06-17-2004, 5:24 PM by ciprian. 2 replies.
Sort Posts: Previous Next
  •  06-17-2004, 5:01 AM 1043

    BGcolor property

     

    Hi again,

     
    I used in one page the BGcolor property from the codebehind page to set the container table background color for cute editor.
     
    As I built another page using the editor inside datagrid by provided example, I could not set this property from codebehind anymore (no object found - maybe you can help here?!) and I tried to put BgColor attribute in the element definition. However it seems that the editor control responds wrongfully by setting it's background to the specified color, not the container table background.
     
    Is there any workaround?
     
    Ciprian
  •  06-17-2004, 10:33 AM 1045 in reply to 1043

    Re: BGcolor property

    Ciprian,
     
    Just set BgColor property as followings:
     

    <asp:TemplateColumn HeaderText = "Title">

            <ItemTemplate>

                <%# DataBinder.Eval(Container.DataItem, "FirstName") %>

            </ItemTemplate>

            <EditItemTemplate>

                    <CE:Editor

                        id = "FirstName_box"

                        Template="Bold,Italic,Underline"

                        Height=80

                         Width=200     

                         ShowBottomBar="false" Text = '<%#DataBinder.Eval(Container.DataItem, "FirstName") %>'

                        runat =   "Server">

                </CE:Editor>

            </EditItemTemplate>

      </asp:TemplateColumn>

    <asp:TemplateColumn HeaderText = "Title">

            <ItemTemplate>

                <%# DataBinder.Eval(Container.DataItem, "LastName") %>

            </ItemTemplate>

            <EditItemTemplate>

                <CE:Editor

                    id = "LastName_box"

                    BgColor="black"

                    Template="Bold,Italic,Underline" Height=80 Width=200 ShowBottomBar="false"

                    Text = '<%#DataBinder.Eval(Container.DataItem, "LastName") %>'

                    runat = "Server" >

            </CE:Editor>

           </EditItemTemplate>

    </asp:TemplateColumn>


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  06-17-2004, 5:24 PM 1053 in reply to 1045

    Re: BGcolor property

    Hi,

     
    I did this:
    <CE:Editor id="subject" BGColor="black" Template="Bold,Italic,Underline" .....
     
    And I obtained this:
     
    As you can see, the result is a bit strange. It may be possible that I use a wrong formated css file? Please have a look at it as well:
View as RSS news feed in XML