Filtering is broken when using only custom columns.
I needed to use custom columns(no field-name) for all columns in some pages, on those pages when I type something on search field, all items disappear. If I remove the text on the filter box, the items do NOT appear back.
Thanks for reporting this. Will have a look.
I currently need to be able to filter on custom properties. Are you planing to work on this? If I want to try to implement this, from which branch should I work so that it facilitate for you merge my PR?
Computed fields already work. In other words, "virtual" fields using display format to generate the value. Did you have a look at the ''column definition'' section? I've recently added a sample in there describing the technique.
Hello. I had a similar problem where I need to have a custom column containing multiple data elements and I needed the output to be sortable and filterable. After playing around and googling, I came upon this solution:

Notice in each td element in tbody has field-name attribute which matches same in thead. After doing this, the UI was generated appropriately and filtering and sorting works.
MoonStorm, thank you very much for creating this tool. Your simplicity and using plain HTML tables is the correct and best approach I've seen. I did not see in your documentation adding field-name to the td of the tbody tag to create custom columns. I may have missed it but it solved this problem for me.
Yes, you're right, matching the THs with the TDs is the way to customize TBODY cell elements. Didn't want to advertise this feature too much.
I believe it's fine to customize body cells in this manner, but not necessarily header cells for fields. It spawned discussions such as #84
I'm still investigating the proper way of exposing this feature before too many people find out about this :wink:
Thank you for the reply. What's the reason why you think this may not be a proper way of customizing TBODY cell elements. From my perspective, this approach allows the developer to keep the table code as close as possible to plain HTML. Also, allows more flexibility for the developer. What are your thoughts? Thanks again for your reply and this tool.
It's fine for the body of both field and custom columns, debatable for the header of field columns.
I definitely wish to see this feature be advertised and demonstrated more. I have a simple requirement where I just want to make the data in my columns a clickable link based on the data, but I cannot successfully implement this.
Even with the suggested method from tomscheck, it allows the filter and sorting buttons to appear again but they don't actually work if there is html markup in the data. Or at least I haven't been able to get it to successfully filter or sort. Any chance there is a work around? Whether it's through filters or through these custom columns, hopefully there is a way.
The data should not have HTML markup.
But even in the example given earlier in the post... ... <td field-name="QuestionName"> <div> {{gridItem.QuestionName}} <p> ... If you used something like this in your table, filtering and sorting pretty much breaks. I've even tried to just put the bare minimum into the customized column with just the DIV tag. But it still breaks the filtering.
It would be an absolutely great feature to be able to filter and sort custom columns!
I have an application where I need x-editable fields inside the grid. I've done that by customizing the columns to include editable fields, but unfortunately this removes the filtering and sorting features even though the column field name for sorting and filtering is exactly as it would be if i did not have the custom column definitions.
As I probably mentioned before, "Computed Fields" with an angular filter or customizing the body cell for an existing field will do the trick. The demo site has examples inside the Columns section, and I also added a test case for x-editable. Let me know if you guys still experience issues.