AutoConfigure and TemplateItemList in Codebehind Problems

  •  12-01-2004, 9:55 AM

    AutoConfigure and TemplateItemList in Codebehind Problems

    In version 2.0 and 3.0 I was creating custom templates in the code behind and everything worked fine.
     
    I am testing version 4.0 and I found that the Template method was changed to the TemplateItemList.  After accessing the new method from the code behind page the custom template no longer works.

    I also found that using the AutoConfigure Method in the code behind no longer works any longer.  As a test I was using 5 editors on a page.  Here is the code form the code behind page.


    Dim Editor1 AsNew CuteEditor.Editor
    Dim Editor2 AsNew CuteEditor.Editor
    Dim Editor3 AsNew CuteEditor.Editor
    Dim Editor4 AsNew CuteEditor.Editor
    Dim Editor5 AsNew CuteEditor.Editor

     
    PrivateSub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load

    Editor1.AutoConfigure = Editor1.AutoConfigure.Full
    Editor1.Height = Editor1.Height.Pixel(100)

    Editor2.AutoConfigure = Editor2.AutoConfigure.Simple
    Editor2.Height = Editor2.Height.Pixel(100)

    Editor3.AutoConfigure = Editor3.AutoConfigure.None
    Editor3.Height = Editor3.Height.Pixel(100)

    Editor4.AutoConfigure = Editor4.AutoConfigure.Gecko
    Editor4.Height = Editor4.Height.Pixel(100)

    Editor5.TemplateItemList = Editor5.TemplateItemList.Concat("Bold,Italic,Underline,JustifyLeft,JustifyCenter,JustifyRight,InsertUnorderedList,Separator,Indent, Outdent")
    Editor5.Height = Editor5.Height.Pixel(100)

    EndSub

     

     

     

     

     

     

     

     

     


    Drone

    No one knows everything, so I come here to learn and teach.
View Complete Thread