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

Latest release of EJ2 Blazor breaks DropDownButton

Thread ID:

Created:

Updated:

Platform:

Replies:

150966 Jan 26,2020 10:37 AM UTC Jan 27,2020 09:39 AM UTC Blazor 3
loading
Tags: Dropdown Menu
Dean Walker
Asked On January 26, 2020 10:37 AM UTC

Hi,

If i update my project from the 17.3.0.29 beta to latest stable 17.4.0.44 it breaks existing code, i've also noticed it breaks examples you have posted in the forum as recently as January 14th 2020.

Razor markup example - 

<EjsDropDownButton ItemSelected="ShowArchiveModal" Content="Archive As" Items="@CategoryButtonItems" />


Code example :- 

private List<Syncfusion.EJ2.Blazor.SplitButtons.ItemModel> CategoryButtonItems { get; set; }


When using the latest stable release i get the following error :-

cannot convert from 'System.Collections.Generic.List<Syncfusion.EJ2.Blazor.SplitButtons.ItemModel>' to System.Collections.Generic.List<Syncfusion.EJ2.Blazor.SplitButtons.DropDownButtonItem>'



This also affects your demo example provided in the following thread...




Please advise, much appreciated.

Dean







Saranya Dhayalan [Syncfusion]
Replied On January 27, 2020 06:04 AM UTC

Hi Dean, 
 
We have checked your reported issue, Previously, we have defined ‘ItemModel’ class for constructing items for Dropdown button Now we have changed this to ‘DropdownButtonItem’. Please find the below code snippet: 
 
@using Syncfusion.EJ2.Blazor.SplitButtons 
 
<EjsDropDownButton Items="@ddlItems" IconCss="e-ddb-icons e-profile"></EjsDropDownButton> 
 
 
<EjsSplitButton Items="@spltItems" IconCss="e-btn-icons e-paste"></EjsSplitButton> 
 
 
@code{ 
 
    public List<Syncfusion.EJ2.Blazor.SplitButtons.DropDownButtonItem> ddlItems { get; set; } = new List<Syncfusion.EJ2.Blazor.SplitButtons.DropDownButtonItem> 
{ 
        new Syncfusion.EJ2.Blazor.SplitButtons.DropDownButtonItem { Text = "Dashboard", IconCss = "e-ddb-icons e-dashboard" }, 
        new Syncfusion.EJ2.Blazor.SplitButtons.DropDownButtonItem { Text = "Notifications", IconCss = "e-ddb-icons e-notifications" }, 
        new Syncfusion.EJ2.Blazor.SplitButtons.DropDownButtonItem { Text = "User Settings", IconCss = "e-ddb-icons e-settings" }, 
        new Syncfusion.EJ2.Blazor.SplitButtons.DropDownButtonItem { Text = "Log Out", IconCss = "e-ddb-icons e-logout" } 
    }; 
 
    public List<Syncfusion.EJ2.Blazor.SplitButtons.SplitButtonItem> spltItems { get; set; } = new List<Syncfusion.EJ2.Blazor.SplitButtons.SplitButtonItem> 
{ 
        new Syncfusion.EJ2.Blazor.SplitButtons.SplitButtonItem { Text = "Paste", IconCss = "e-btn-icons e-paste" }, 
        new Syncfusion.EJ2.Blazor.SplitButtons.SplitButtonItem{ Text = "Paste Special", IconCss = "e-btn-icons e-paste-special" }, 
        new Syncfusion.EJ2.Blazor.SplitButtons.SplitButtonItem{ Text = "Paste as Formula", IconCss = "e-btn-icons e-paste-formula" }, 
        new Syncfusion.EJ2.Blazor.SplitButtons.SplitButtonItem{ Text = "Paste as Hyperlink", IconCss = "e-btn-icons e-paste-hyperlink" } 
    }; 
 
} 
 
For your convenience, we have prepared a sample. Please find the sample link: 
 
 
Please find the release notes for tag directive support for ‘Items’ 
 
 
 
Could you please check the above sample link and get back to us, if you need any further assistance on this? 
 
Regards, 
Saranya D 


Dean Walker
Replied On January 27, 2020 09:28 AM UTC

Hi,

Thanks for this the suggested change fixed it, i will endeavour to check release notes in the future.

Many thanks,

Dean

Saranya Dhayalan [Syncfusion]
Replied On January 27, 2020 09:39 AM UTC

Hi Dean 
 
Most Welcome.  
 
Please let us know, if you need any further assistance on this.  
 
Regards, 
Saranya D 


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