Re: Button Handling

  •  11-24-2006, 5:51 PM

    Re: Button Handling

    >>I don't want to create a custom button. I want to change the properties of toolbars item "ToFullPage" and "FromFullPage".

    Why do you want to do that? It doesn't make sense to me. The button will do post back, however the clietn function will be ignored.
     
    Anyways, here are the solutions:
     
    1. Open the toolbar configuration file and change the following code:
     
    <item type="image" name="ToFullPage" imagename="fit" hotkey="F12" />
    <item type="image" name="FromFullPage" imagename="restore" hotkey="F12" />
    to

    <item type="image" name="ToFullPage" imagename="fit" hotkey="F12" PostBack="true"/>
    <item type="image" name="FromFullPage" imagename="restore" hotkey="F12" PostBack="true"/>
     
    2. Programmatically set button do post back.
     
    Control tofullpage=Editor2.ToolControls["ToFullPage"].Control;
    tofullpage.Attributes["postback"]="true";
     
     
    How to change the layout of the toolbars?
     
    I did check that article. However, it doesn't show how in VB code to simply prevent specific toolbars from displaying.
     
    Could you show me some code, please?
     
     The sample code is included.
     
    5. Put the toolbar items needed to be disabled into this Editor.DisableItemList string.

    For example:

    <CE:Editor id="Editor1" DisableItemList="save, help, CssStyle" runat="server"></CE:Editor>

    C# Example: 
    Editor1.DisableItemList = "save, help, CssStyle";


    VB

    Editor1.DisableItemList = "save, help, CssStyle"
     
     

    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

View Complete Thread