Change Toolbar's configuration in runtime.

Last post 03-20-2009, 6:50 AM by oaicstef. 5 replies.
Sort Posts: Previous Next
  •  03-18-2009, 7:53 AM 50020

    Change Toolbar's configuration in runtime.

    Hi,
    I'd like to change the configuration of the toolbar, when the user click a button in the toolbar.
    Exactly when the user click the button for resizing the control to full screen.
    For example I'd like to use, a Simple Comfiguration when the control is in normal size and a Full Configuration when it'll be in full screen.
     
    Is there a way to do it?
     
    Thanks
  •  03-18-2009, 11:08 AM 50024 in reply to 50020

    Re: Change Toolbar's configuration in runtime.

    Please check this example:
     
     
    You need to use CuteEditor_OnCommand event.
     
    Here is the code of that example:
     
    1. function CuteEditor_OnCommand(editor,command,ui,value)   
    2.         {   
    3.             //handle the command by yourself   
    4.             if(command.toLowerCase()=="insertemotion")   
    5.             {   
    6.                 var answer = confirm("Click OK to stop this command.")   
    7.                 if (answer){   
    8.                     return true;   
    9.                 }   
    10.                 else{   
    11.                     return false;   
    12.                 }   
    13.             }   
    14.         }  

    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

  •  03-18-2009, 11:50 AM 50039 in reply to 50024

    Re: Change Toolbar's configuration in runtime.

    Thanks, very usefull...
    I was thinking to use the PostBack, but I have now another problem, because I created a user Control within the CuteControl...
    So can you help me, to capture the PostbackCommand event from the parent page???
    I suppose that I should create a public Handler for that event in my control, so that I'll capture the event in the main page, but I'm not going to realize how to do it...
     
    Anyway, this is another issue, I'd like to use your component perfectly, because for sure I'll need to create some custom button with postback...
     
    Thank you again!
    OaicStef
  •  03-18-2009, 12:19 PM 50041 in reply to 50039

    Re: Change Toolbar's configuration in runtime.

    How to capture the save button click event?
    How to capture the SAVE button click event?( C# | VB )
    This example demonstrates how to capture the SAVE button click event by using client-side code and server-side code.
     
    Please check this example.

    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

  •  03-20-2009, 3:52 AM 50114 in reply to 50041

    Re: Change Toolbar's configuration in runtime.

    Hi, yes,maybe it's what i was looking for, but where to go for finding the C# Code?
    Anyway the first problem is that I'm not able to capture the event because I inserted the CuteControl in a new User Control.
     
    Thanks
    OaicStef
  •  03-20-2009, 6:50 AM 50122 in reply to 50114

    Re: Change Toolbar's configuration in runtime.

    Hi Adam,
    you can't believe, I just created another web page  within my usercontrol, and now the PostBackCommand Event work perfectly..
    I'm using VS 2003 and I can say that some time it became crazy.
     
    The Thread is closed...
    Thanks again!
View as RSS news feed in XML