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

Item is null in ClickEventArgs

Thread ID:

Created:

Updated:

Platform:

Replies:

144928 May 29,2019 08:53 AM UTC Jun 10,2019 09:18 AM UTC Blazor 3
loading
Tags: Toolbar
Brice FROMENTIN
Asked On May 29, 2019 08:53 AM UTC

Here is the code :

[...]
@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 Id="itemSidebar" Type="ItemType.Button" TooltipText="SideBar" Click="OnSidebarClicked" PrefixIcon="e-indent-icon tb-icons" />
        <ToolbarItem Id="itemDummy" Type="ItemType.Button" TooltipText="Dummy" PrefixIcon="e-indent-icon tb-icons" />
    </ToolbarItems>
</EjsToolbar>

@functions
{
    // References
    EjsSidebar sidebar;

    public void OnToolbarClicked(ClickEventArgs args)
    {
        var toto = JsonConvert.SerializeObject(args);
        sidebar.Show();
    }
}
[...]

the value of toto is : "{"cancel":false,"item":null,"name":"clicked","originalEvent":{"cancel":false,"element":null,"event":null,"isInteracted":false,"model":null}}". How do I know from which Item the event com from ?

Thx.



Vijayanand S [Syncfusion]
Replied On May 31, 2019 11:49 AM UTC

Hi Brice, 

Sorry for the inconvenience caused. 

We can reproduce the problem you reported and consider it as a defect. We created the defect report and provided the link below to track its status for further updates. The fix for this issue will be included in any of our weekly patch releases on or before June 20, 2019. 


Please let me know if you have any questions. 

Regards,
Vijay 


Brice FROMENTIN
Replied On June 8, 2019 06:28 AM UTC

Thx the *.50beta fixed the issued :

toto = {"cancel":false,"item":{"id":"itemSidebar","prefixIcon":"e-indent-icon tb-icons","tooltipText":"SideBar","htmlAttributes":null,"cssClass":"","template":"","type":"Button","text":"","suffixIcon":"","width":"auto","showTextOn":"Both","overflow":"None","showAlwaysInPopup":false,"align":"Left"},"name":"clicked","originalEvent":{"cancel":false,"element":null,"event":null,"isInteracted":false,"model":null}}

Karthigeyan Krishnamurthi [Syncfusion]
Replied On June 10, 2019 09:18 AM UTC

Hi Brica, 

We are happy that the reported issue has been resolved in *.50beta version. 

Regards, 
Karthi 
 


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