问题
I have been using Nebula NatTable for quite sometime in my project and is familiar with the basics. I Have 2 questions on sorting and filtering.
There are separate examples given for sorting and filtering filter example, sort example . My question is , can I include both these features in one instance of NatTable?
Can I remove the filterheader control after the NatTable instance is created? If yes, how can that be done ?
回答1:
Yes and there are several examples showing that. Some of them are for example located in Tutorial Examples - Integration. All the features in NatTable can be combined.
I suppose you mean the filter header row, as there is no special control for it. It can not be removed in terms of removing it from the layer stack afterwards. But the visibility can be changed at runtime. There is even a key binding by default enabled to do that. By pressing F3 you can toggle the visibility at runtime. The question is, why do you want to remove the filter row after the creation time. Typically people are doing it for programmatically filtering, but that should be possible without the filter row by applying filters to the
FilterList
来源:https://stackoverflow.com/questions/38626763/questions-on-nebula-nattable-sorting-and-filtering