Serenity: how to add filters like order grid from sample in my custom table form

Created on 8 Apr 2018  路  3Comments  路  Source: serenity-is/Serenity

I created doctor table in northwind and generated form, grid, css using serene generator tool. Its working! but it does not have the filters like order grid from current sample. How do I quickly add all the dropdown style filters in my form like orders table grid? I also need export to excel pdf likesample order. Code generator did not ask for these options.

community-support question

Most helpful comment

Please look at samples.
To make a field filterable put [QuickFilter] on top of that field in yourRow.cs

All 3 comments

Please look at samples.
To make a field filterable put [QuickFilter] on top of that field in yourRow.cs

Thanks! I do see this in ordercolumns.cs and not in orderrow.cs. I am trying it now.

[EditLink, Width(200), QuickFilter]
public String CustomerCompanyName { get; set; }

    [EditLink, QuickFilter(CssClass = "hidden-xs")]
    public DateTime? OrderDate { get; set; }

    [Width(140), EmployeeFormatter(GenderProperty = "EmployeeGender"), QuickFilter(CssClass = "hidden-xs")]
    public String EmployeeFullName { get; set; }

Closing due to inactivity.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Estrusco picture Estrusco  路  3Comments

kilroyFR picture kilroyFR  路  3Comments

AmuthaKondusamy picture AmuthaKondusamy  路  3Comments

StefanTheiner picture StefanTheiner  路  3Comments

newyearsoft picture newyearsoft  路  3Comments