We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Unable to received click event on Toolbar

Thread ID:

Created:

Updated:

Platform:

Replies:

144885 May 27,2019 04:01 PM UTC May 29,2019 08:17 AM UTC Blazor 1
loading
Tags: Toolbar
Brice FROMENTIN
Asked On May 27, 2019 04:01 PM UTC

Here my sample :

[...]
@inherits LayoutComponentBase
@inject IJSRuntime JSRuntime
<style>
    .e-indent-icon:before {
        content: "\e70b"
    }
</style>
<EjsSidebar ID="sidebar" ref="sidebar" Type="SidebarType.Over" CloseOnDocumentClick="true">
    <ChildContent>
        <div class="title"> Sidebar content</div>
    </ChildContent>
</EjsSidebar>
<EjsToolbar id="toolbar" Clicked="@OnToolbarClicked">
    <ToolbarItems>
        <ToolbarItem Type="ItemType.Button" TooltipText="SideBar" PrefixIcon="e-indent-icon tb-icons" />
    </ToolbarItems>
</EjsToolbar>
@functions
{
    // References
    EjsSidebar sidebar;
    public void OnToolbarClicked(ClickEventArgs args)
    {
        sidebar.Show();
    }
}
[...]

When clicking on the toolbar button, the sidebar never show.

Thx.

Brice FROMENTIN
Replied On May 29, 2019 08:17 AM UTC

This is fixed on the latest beta.

Thx.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon