Hi,
I am reporting that Issue from this thread is still not resolved.
After populating the dropdown list from a datasource, clicking either on the list or on the down arrow has no effect; the component will not drop down to display the list of items; Please see code bellow. It works fine when updating Syncfusion Blazor version to 19.4.0.56 or lower.
https://www.syncfusion.com/feedback/37037/dropdownlist-not-droping-down-when-clicked-on-or-on-down-arrow
After downfrading from 23.1.38 to 19.4.0.56 dropdown list started to work.. Please see my code below:
@using Syncfusion.Blazor.Grids
@using Syncfusion.Blazor.DropDowns
@page "/"
@code {
SfGrid GridInstance { get; set; }
protected override void OnInitialized()
{
Orders = Enumerable.Range(1, 75).Select(x => new Order()
{
OrderID = 1000 + x,
CustomerID = (new string[] { "ALFKI", "ANANTR", "ANTON", "BLONP", "BOLID" })[new Random().Next(5)],
Freight = 2.1 * x,
OrderDate = DateTime.Now.AddDays(-x),
ShipCountry = (new string[] { "USA", "UK", "CHINA", "RUSSIA", "INDIA" })[new Random().Next(5)],
CBstatus = true,
ShipState = (new string[] { "New York", "Virginia", "Washington", "Queensland", "Tasmania", "Victoria" })[new Random().Next(5)],
}).ToList();
}
public async Task CellSelectHandler(CellSelectEventArgs args)
{
//get selected cell index
var CellIndexes = await GridInstance.GetSelectedRowCellIndexes();
//get the row and cell index
var CurrentEditRowIndex = CellIndexes[0].Item1;
var CurrentEditCellIndex = (int)CellIndexes[0].Item2;
//get the available fields
var fields = await GridInstance.GetColumnFieldNames();
// edit the selected cell using the cell index and column name
await GridInstance.EditCell(CurrentEditRowIndex, fields[CurrentEditCellIndex]);
}
public List Orders { get; set; }
public class Order
{
public int? OrderID { get; set; }
public string CustomerID { get; set; }
public DateTime? OrderDate { get; set; }
public double? Freight { get; set; }
public string ShipCountry { get; set; }
public Boolean? CBstatus { get; set; }
public Boolean? CBstatus2 { get; set; }
public List States = new List() { "New York", "Virginia", "Washington", "Queensland", "Tasmania", "Victoria" };
public string ShipState { get; set; }
}
}