Blogs

News

Email Subscriptions

Mehul Harry's DevExpress Blog

ASP.NET HTML Editor DropDown Menu (coming in v2010 vol 2)

     

Check out this upcoming dropdown menu feature of the ASPxHtmlEditor in the DXperience 2010 vol 2 release:

image

You will be able to define custom dropdown menus and their items by extending the toolbars of the ASPxHtmlEditor.

Here’s the source code that defines the dropdown menu and it’s items:

<dx:ASPxHtmlEditor ID="DemoHtmlEditor" runat="server" Height="300px" ClientInstanceName="HtmlEditor">
    <ClientSideEvents CustomCommand="OnCommandExecute" />
    <Toolbars>
        <dx:HtmlEditorToolbar>
            <Items>
                <dx:ToolbarUndoButton>
                </dx:ToolbarUndoButton>
                <dx:ToolbarRedoButton>
                </dx:ToolbarRedoButton>
                <dx:ToolbarJustifyLeftButton BeginGroup="True">
                </dx:ToolbarJustifyLeftButton>
                <dx:ToolbarJustifyCenterButton>
                </dx:ToolbarJustifyCenterButton>
                <dx:ToolbarJustifyRightButton>
                </dx:ToolbarJustifyRightButton>
                <dx:ToolbarJustifyFullButton>
                </dx:ToolbarJustifyFullButton>
                <dx:ToolbarDropDownMenu BeginGroup="true" CommandName="InsertDateTime" ToolTip="Insert Date and Time">
                    <Image Url="~/Content/Demo/date-icon.png" Height="16px" Width="16px">
                    </Image>
                    <Items>
                        <dx:ToolbarMenuItem Text="MM/dd/yyyy" Value="%m/%d/%y">
                        </dx:ToolbarMenuItem>
                        <dx:ToolbarMenuItem Text="yyyy-MM-dd" Value="%y-%m-%d">
                        </dx:ToolbarMenuItem>
                        <dx:ToolbarMenuItem Text="Month dd, yyyy" Value="%mf %d, %y">
                        </dx:ToolbarMenuItem>
                        <dx:ToolbarMenuItem Text="Day of Week, Month dd, yyyy" Value="%df, %mf %d, %y">
                        </dx:ToolbarMenuItem>
                        <dx:ToolbarMenuItem Text="h:mm AM" Value="%h:%M %p" BeginGroup="true">
                        </dx:ToolbarMenuItem>
                        <dx:ToolbarMenuItem Text="h:mm:ss AM" Value="%h:%M:%s %p">
                        </dx:ToolbarMenuItem>
                        <dx:ToolbarMenuItem Text="MM/dd/yyyy h:mm AM" Value="%m/%d/%y %h:%M %p" BeginGroup="true">
                        </dx:ToolbarMenuItem>
                        <dx:ToolbarMenuItem Text="yyyy-MM-dd h:mm:ss AM" Value="%y-%m-%d %h:%M:%s %p">
                        </dx:ToolbarMenuItem>
                    </Items>
                </dx:ToolbarDropDownMenu>
            </Items>
        </dx:HtmlEditorToolbar>
    </Toolbars>
</dx:ASPxHtmlEditor>

Drop me a line below with your thoughts on the upcoming ASPxHtmlEditor’s dropdown menu feature. Thanks!

Follow MehulHarry on Twitter

DXperience? What's That?

DXperience is the .NET developer's secret weapon. Get full access to a complete suite of professional components that let you instantly drop in new features, designer styles and fast performance for your applications. Try a fully-functional version of DXperience for free now: http://www.devexpress.com/Downloads/NET/

Published Aug 19 2010, 06:15 PM by Mehul Harry (DevExpress)
Bookmark and Share

Comments

 

Pravin Taneja said:

Thanks, its going to be very useful.

August 19, 2010 10:02 PM
 

Mehul Harry (DevExpress) said:

@Pravin,

Cool, thanks for the feedback. Stay tuned for more 2010 vol 2 ASPxHtmlEditor feature news in the coming weeks.

August 20, 2010 1:16 AM
 

Ian Byrne said:

Looks great!  The HTML editor is a great tool. Any chance of both a WinForms amd Silverlight edition??

August 20, 2010 5:19 AM
 

Roger Parry said:

That looks really good. As above, we'd love a Win Forms version as we have to use another 3rd party one at present (the only non DevExpress component in our project)

August 21, 2010 6:06 PM
 

Livio Negro said:

Wow!!

Very cool!!

Thanks!!

August 23, 2010 5:52 AM

About Mehul Harry (DevExpress)

Mehul Harry is an ASP.NET technical evangelist at Developer Express. You can reach him directly at mharry@DevExpress.com. You can also follow him on Twitter: http://twitter.com/mehulharry
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.