The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I'm using the GridFilterBar wired to a data bound grid. The problem i'm facing is that the Filterbar does not get updated with the values as they are added to the grid after the filterbar is wired.
HAhaneefm Syncfusion Team January 23, 2008 06:18 PM UTC
Hi Sabareesh,
To update the filterbar dropdown values in a GridDataBoundGrid, you need to handle the CurrentCellShowingDropDown event and set the ListBoxPart.DataSource of the filterbar using below code snippet. Please try this and let me know if this helps.
dr = dt.NewRow(); dr[0] = "(none)"; dt.Rows.Add(dr);
dr = dt.NewRow(); dr[0] = "(custom)"; dt.Rows.Add(dr);
string s = ""; for (int i = 0; i < dv.Count; ++i) { if (s != dv[i].Row[colName].ToString().ToUpper()) { s = dv[i].Row[colName].ToString(); dr = dt.NewRow(); dr[0] = s; dt.Rows.Add(dr); } } return dt; }