Ticket T165144
Visible to All Users

Documentation - Update the ASPxClientHtmlEditor.CustomCommand topic

created 10 years ago

Describe how the EventArgs e.commandName parameter is filled from custom toolbar items in:
- The Menu mode (from the CustomToolbarButton.CommandName property):

ASPx
<dx:ASPxHtmlEditor ... ToolbarMode="Menu"> <Toolbars> <dx:HtmlEditorToolbar> <Items> <dx:CustomToolbarButton CommandName="CustomCommandMenuMode"></dx:CustomToolbarButton> </Items> </dx:HtmlEditorToolbar> </Toolbars> <ClientSideEvents CustomCommand="OnCustomCommand" /> </dx:ASPxHtmlEditor>

- The Ribbon mode (from the RibbonItemBase.Name property):

ASPx
<dx:ASPxHtmlEditor ... ToolbarMode="Ribbon"> <RibbonTabs> <dx:HEHomeRibbonTab> <Groups> <dx:RibbonGroup> <Items> <dx:RibbonButtonItem Name="CustomCommandRibbonMode"> </dx:RibbonButtonItem> </Items> </dx:RibbonGroup> </Groups> </dx:HEHomeRibbonTab> </RibbonTabs> <ClientSideEvents CustomCommand="OnCustomCommand" /> </dx:ASPxHtmlEditor>
JavaScript
function OnCustomCommand(s, e) { alert(e.commandName); }

Answers approved by DevExpress Support

created 9 years ago (modified 9 years ago)

We have implemented the functionality described in this ticket. It will be included in our next update(s).

Please check back and leave a comment to this response to let us know whether or not this solution addresses your concerns.

Additional information:

We've updated the ASPxClientHtmlEditorCommandEventArgs.commandName topic.
Note that the specified link will be available with the 15.1.8 documentation release.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.