使用Spead Asp.net 6.0添加过滤,列头显示了过滤下拉列表,但是选择其中一项不会进行过滤,感觉应该是有什么js没执行,是需要怎么设置吗
代码:
FarPoint.Web.Spread.IRowFilter rowFilter = new FarPoint.Web.Spread.HideRowFilter(sheet);
// add a FilterColumnDefinition for Columns
int iColumnIndex = this.GetStatusColumnIndex();
FarPoint.Web.Spread.NamedStyle instyle = new FarPoint.Web.Spread.NamedStyle();
FarPoint.Web.Spread.NamedStyle outstyle = new FarPoint.Web.Spread.NamedStyle();
instyle.BackColor = Color.Yellow;
outstyle.BackColor = Color.Gray;
FarPoint.Web.Spread.StyleRowFilter rf = new FarPoint.Web.Spread.StyleRowFilter(sheet, instyle, outstyle);
sheet.RowFilter = rf;
// Assign filter and customize filter options.
sheet.RowFilter.AddColumn(iColumnIndex);
sheet.RowFilter.ShowFilterIndicator = true;
sheet.RowFilter.AllString = "全部";
sheet.RowFilter.NonBlanksString = "非空";
sheet.RowFilter.UnfilteredRows = new int[1] { 0 }
|
|