Home Search Member List Faq Register Login  
UltimateEditor
Re: Toolbar disappears after adding a customized button

Thread Starter: jkhsu   Started: 12-04-2007 7:38 PM   Replies: 1
 Karamasoft Support Forums » General Discussions » UltimateEditor » Re: Toolbar disappears after adding a customized button
 Printable Version    « Previous Thread   Next Thread »
  04 Dec 2007, 7:38 PM
jkhsu is not online. Last active: 9/10/2010 11:24:14 AM jkhsu

Top 10 Posts
Joined on 09-14-2007
Posts 34
Toolbar disappears after adding a customized button
Hi,

I have the following toolbar

<Toolbar ID="EmailTemplate">

<ToolbarItem Type="Button" ID="Template" Command="Template" ButtonFile="Template.gif" />

<ToolbarItem Type="Button" ID="Open" Command="Open" ButtonFile="Open.gif" />

<ToolbarItem Type="Button" ID="Save" Command="Save" ButtonFile="Save.gif" />

</Toolbar>

, where the Template button is a customized button, and it does not show up on the UltimateEditor. If I change Command="Template" to something like Command="New", the toolbar will show up fine. However, every time I click the Template button, it would execute the New commnad first before executing my own javascript. What would be the reason for the toolbar not showing up?

  
  04 Dec 2007, 8:02 PM
Karamasoft is not online. Last active: 5/8/2018 10:36:45 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,820
Re: Toolbar disappears after adding a customized button
You have to set Command to "None" and in your page code-behind, you should check the toolbar item id as follows:

protected void UltimateEditor1_ToolbarItemRender(object sender, ToolbarItemRenderEventArgs e)
{
   if (e.ToolbarItem.ID == "Template")
   {
      e.ToolbarItem.OnBeforeClick =
"HandleTemplateBeforeClick();";
      e.ToolbarItem.OnAfterClick =
"HandleTemplateAfterClick();";
   }
}

Please refer to our Events sample to see more about how you can define custom toolbar items.


  
 Page 1 of 1 (2 items)
Karamasoft Support Forums » General Discussions » UltimateEditor » Re: Toolbar disappears after adding a customized button

You can add attachments
You can post new topics
You can reply to topics
You can delete your posts
You can edit your posts
You can create polls
You can vote in polls
Forum statistics are enabled
Forum is unmoderated

© 2002-2018 Karamasoft LLC. All rights reserved.