|
@using Syncfusion.EJ2.Blazor.Data
@using Syncfusion.EJ2.Blazor.DropDowns
<EjsDropDownList TItem="OrderDetails" TValue="string" Query="@RemoteDataQuery" AllowFiltering="true">
<EjsDataManager Url="https://js.syncfusion.com/demos/ejServices/Wcf/Northwind.svc/Orders" CrossDomain="true" Adaptor="Syncfusion.EJ2.Blazor.Adaptors.ODataAdaptor"></EjsDataManager>
<DropDownListFieldSettings Text="CustomerID" Value="CustomerID"></DropDownListFieldSettings>
</EjsDropDownList>
@code {
public Query RemoteDataQuery = new Query().Select(new List<string> { "CustomerID" }).Take(10).RequiresCount();
public class OrderDetails
{
public int? OrderID { get; set; }
public string CustomerID { get; set; }
public int? EmployeeID { get; set; }
public double? Freight { get; set; }
public string ShipCity { get; set; }
public bool Verified { get; set; }
public DateTime? OrderDate { get; set; }
public string ShipName { get; set; }
public string ShipCountry { get; set; }
public DateTime? ShippedDate { get; set; }
public string ShipAddress { get; set; }
}
} |
<SfDropDownList TValue="int" TItem="SimpleList" @bind-Value="@Id" AllowFiltering=true > <SfDataManager Headers="@HeaderData" Url="api/DocumentEntryType" Adaptor="Adaptors.WebApiAdaptor" CrossDomain="true">SfDataManager> <DropDownListFieldSettings Text="Name" Value="Id" /> SfDropDownList>
Hi Gill,Greetings from Syncfusion support.While checking the issue, we suggest you to use the Take in the Query property to load the required data initially in the DropDownList popup. If you enable the AllowFiltering property as true, matching value for the typed character will be fetched from the whole data. Due to this, we can reduce the performance issue in the DropDownList while loading large amount of data.
@using Syncfusion.EJ2.Blazor.Data@using Syncfusion.EJ2.Blazor.DropDowns<EjsDropDownList TItem="OrderDetails" TValue="string" Query="@RemoteDataQuery" AllowFiltering="true"><EjsDataManager Url="https://js.syncfusion.com/demos/ejServices/Wcf/Northwind.svc/Orders" CrossDomain="true" Adaptor="Syncfusion.EJ2.Blazor.Adaptors.ODataAdaptor"></EjsDataManager><DropDownListFieldSettings Text="CustomerID" Value="CustomerID"></DropDownListFieldSettings></EjsDropDownList>@code {public Query RemoteDataQuery = new Query().Select(new List<string> { "CustomerID" }).Take(10).RequiresCount();public class OrderDetails{public int? OrderID { get; set; }public string CustomerID { get; set; }public int? EmployeeID { get; set; }public double? Freight { get; set; }public string ShipCity { get; set; }public bool Verified { get; set; }public DateTime? OrderDate { get; set; }public string ShipName { get; set; }public string ShipCountry { get; set; }public DateTime? ShippedDate { get; set; }public string ShipAddress { get; set; }}}
We have prepared the sample and attached it below.Sample Link: https://www.syncfusion.com/downloads/support/forum/151473/ze/Syncfusion_Blazor_151473_Slow_performance-816243585Regards,Berly B.C
Hi,I am using SfDropDownList with SfDataManager WebApiAdaptor.With AllowFiltering=true dropdown list is slow after click item from dropdownlist. It takes a while to display selected item. My table have only 20 rows.<SfDropDownList TValue="int" TItem="SimpleList" @bind-Value="@Id" AllowFiltering=true > <SfDataManager Headers="@HeaderData" Url="api/DocumentEntryType" Adaptor="Adaptors.WebApiAdaptor" CrossDomain="true">SfDataManager> <DropDownListFieldSettings Text="Name" Value="Id" /> SfDropDownList>This only happens when I use @bind-Value="@Id".Is there any solution to this? I am using Blazor Client (18.1.58)
Hi Ashimaz,Sorry for the inconvenience caused.Currently we are working on this issue fix with high priority. We will include the fix in this month second week patch release after released the Volume-2 main release. Which is scheduled on July 22nd,2020. We appreciate your patience.Regards,Sureshkumar P
Hi Kamran,Sorry for the inconvenience caused.While fixing the reported issue, we have faced more complexities due to our present DOM structure of the component. So, we have planned to consider this issue in our component improvement. This improvement will be available in our Volume 3 Main release scheduled on end of September 2020. We appreciate your patience until then.Regards,Sureshkumar P
|
<SfDropDownList TValue="string" TItem="Data" Placeholder="e.g: Aero" EnableVirtualization="true"
DataSource="@Country">
<DropDownListFieldSettings Value="Name"></DropDownListFieldSettings>
<DropDownListEvents TItem="Data" TValue="string" ValueChange="OnChange" OnValueSelect="Select"></DropDownListEvents>
</SfDropDownList>
|
Hi Robert,We are glad to announce that our Essential Studio 2020 Volume 3 release v18.3.0.35 is rolled out and is available for download under the following link.Forum Link : https://www.syncfusion.com/forums/158306/essential-studio-2020-volume-3-release-v18-3-0-35-is-available-for-downloadRelease Notes : https://blazor.syncfusion.com/documentation/release-notes/18.3.35/?type=all#dropdownlistSample Link : https://www.syncfusion.com/downloads/support/directtrac/general/ze/Dropdownlist_Performance-187025969If you want to load more data in the dropdownlist component. then we suggest you add the EnableVirtualization property to support as virtualization scrolling support to achieve your requirement.Please find the code example here:
<SfDropDownList TValue="string" TItem="Data" Placeholder="e.g: Aero" EnableVirtualization="true"DataSource="@Country"><DropDownListFieldSettings Value="Name"></DropDownListFieldSettings><DropDownListEvents TItem="Data" TValue="string" ValueChange="OnChange" OnValueSelect="Select"></DropDownListEvents></SfDropDownList>We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.Regards,Sureshkumar P.
Hi Muhammad,We have created the sample based on your scenario with 5000 dataSource and EnableVirtualization. We could not replicate it in our end. Please find the sample link belowKindly check the above sample in your end. If the issue still persist, kindly replicate the issue in above sample or else provide issue replicating sample.Regards,Vignesh Srinivasan.
Wilson, if you go back to 18.3.53 can you tell me if that works?