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 have the example app (FilterBarGrid) running and it works as intended. In my application, the filter bar does not appear.
When I check the filterBar object immediately after the WireGrid call, its state has not changed and, in particular, "Wired" is still false.
Since I see no mention of this in the forum archives, I've got to believe that I'm doing something real dumb. I don't have the grid source code, so I can't see what's causing the failure to wire (no debug messages are emitted, either).
While I still don't have the filtering working completely, I am now able to get the WireGrid to work. I did this by resetting the DataSource directly to the DataTable instead of the BindingSource wrapper that is forced by the designer.
Hopefully, I'll be able to retain the other functionality that IS working with the BindingSource, but it is a little goofy to have to do this. Is there some way to get the GridFilterBar working with the BindingSource?
>I have the example app (FilterBarGrid) running and it works as intended. In my application, the filter bar does not appear.
When I check the filterBar object immediately after the WireGrid call, its state has not changed and, in particular, "Wired" is still false.
Since I see no mention of this in the forum archives, I've got to believe that I'm doing something real dumb. I don't have the grid source code, so I can't see what's causing the failure to wire (no debug messages are emitted, either).
???
RARajagopal Syncfusion Team June 15, 2007 07:04 PM UTC
Hi Dave,
There has been no change in respect to the filtering on an arbitrary IBindingList/Collection(bindingSource). We still don't support it.
As far as implementing the UI, there is not much difference between setting things up for a DataTable and a IBindingList. The problem is, once you have the desired filter requirements, how do you apply them to an arbitrary IBindingList object. In a DataTable, it is done through the DataTable.DefaultView.RowFilter property. This does all the work, all you have to do is set it. For arbitrary IBindingList, you would have to somehow do this same type of thing, ie. prepare a 2nd list that only holds items from the first list that satisfy the filter, and then set this as the grid's datasource. The DataTable uses DefaulView to play the role of this second list. So, in your filterbar, you could have to maintain a defaultview list for your IBindingList.
Also, minimally, I think your IBindingList would have to support IBindingList.Find and maybe IBindingList.Sort to have all the pieces come together. You need to use GridGroupingControl if you need this feature. Please check the below browser sample shipped with the product.