Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

the behavior in our Typescript platform we can set the “e-static-clear” class using cssClass property to the dropdownlist component to achieve this behavior. But same case not working in the blazor platform.


Please check and suggest how to proceed further on this incident.


TS sample : https://stackblitz.com/edit/jhggke-hw5dwb?file=index.ts


Blazor sample code example:

@using Syncfusion.Blazor.DropDowns

@using System.Collections.Generic;


<SfDropDownList
ShowClearButton="true"
CssClass="e-static-clear"
DataSource="@Dropdown"
TValue="string"
TItem="string">

    <DropDownListEvents
TItem="string"
TValue="string"
ValueChange="OnChange"></DropDownListEvents>

</SfDropDownList>


@code{


    List<string> Dropdown = new
List<string>{

        "",

        ""

};


    private
void OnChange(Syncfusion.Blazor.DropDowns.ChangeEventArgs<stringstring> args)

    {


    }

}