C1Menu properties from 2010v1 to 2025v2 399

Posted by: enrique.pv-ext on 27 January 2026, 5:27 am EST

  • Posted 27 January 2026, 5:27 am EST

    Hi,

    Migrate from 2010v1 to 2025v2 399 in ASP.NET WebForms NET Framework 4.8.1.

    Using C1Menu from C1.Web.Wijmo.Controls.48.dll

    Change to new C1Menu control.

    2010 version code

    		<cc1:C1Menu ID="C1Menu1" runat="server" Height="23px" OnLoad="C1Menu1_Load"
    			UseEmbeddedVisualStyles="False" VisualStyle="CustomVisualStyle"
    			VisualStylePath="~/VisualStyles" ClickToOpen="True" Width="295px"
    			ExpandDelay="0" CollapseDelay="0" CollapseDuration="250"
    			NestedGroupCheckable="False">
    			<Items>
    				<cc1:C1MenuItem runat="server" Text="Menú" NestedGroupCheckable="False">
    				</cc1:C1MenuItem>
    			</Items>
    		</cc1:C1Menu>

    2025v2 399 version code

    		<cc1:C1Menu ID="C1Menu1" runat="server" Height="23px" OnLoad="C1Menu1_Load">
    			<Items>
    				<cc1:C1MenuItem runat="server" Text="Menú">
    				</cc1:C1MenuItem>
    			</Items>
    		</cc1:C1Menu>

    alternatives to those older properties:

    ClickToOpen=“True”

    ExpandDelay=“0”

    CollapseDelay=“0”

    CollapseDuration=“250”

    UseEmbeddedVisualStyles=“False”

    VisualStyle=“CustomVisualStyle”

    VisualStylePath=“~/VisualStyles”

    resume: ClickToOpen, delay, styles…

    any suggestions?

    regards,thx

  • Posted 28 January 2026, 2:27 am EST

    Hi,

    To open the C1Menu on click, you can use the Trigger and the TriggerEvent property.

    Trigger: Specifies the event used to show the menu.

    TriggerEvent: Set the event used to show the menu and submenu( If “SubmenuTriggerEvent” is “Default”).

    Sample Code:

    <button id="btn">Open</button>
    <wijmo:C1Menu ID="C1Menu1" runat="server" Height="23px" OnLoad="C1Menu1_Load" Trigger="#btn" TriggerEvent="Rtclick">
        <items>
            <wijmo:C1MenuItem runat="server" Text="Menú">
            </wijmo:C1MenuItem>
            <wijmo:C1MenuItem runat="server" Text="Menú1">
            </wijmo:C1MenuItem>
        </items>
    </wijmo:C1Menu>
    

    And for ExpandDelay and CollapseDelay, CollapseDuration, you may use the HideDelay and CloseDelay and for more customization, you may override the Animation, HideAnimation and the ShowAnimation.

    To set the CSS, please use the Style property.

    For any further details on this, you can also refer to the documentation. We have specified all the available class members for C1Menu and other controls in the documentation link below:

    Regards,

    Akshay

  • Posted 28 January 2026, 8:16 am EST

    full sample using

    TriggerEvent="Rtclick"
    ?

    Rtclick is event in backend C# .cs

  • Posted 29 January 2026, 1:26 am EST

    Hi Kiquenet,

    TriggerEvent is actually an enumeration. Please refer to our documentation:

    https://developer.mescius.com/componentone/docs/webforms/online-editor/C1.Web.Wijmo.Controls.45~C1.Web.Wijmo.Controls.C1Menu.TriggerEvent.html

    Sample: https://demo.componentone.com/aspnet/controlexplorer/C1Menu/MenuItemTrigger.aspx

    If you encounter an issue after following the documentation, please share the specific problem, and we’ll be happy to help.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels