Quantcast
Channel: Editor — DataTables forums
Viewing all articles
Browse latest Browse all 3800

Editor .NET - Optimize Distinct for duplicate tables

$
0
0

The following code results in multiple DISTINCT to same table:

.Field(new Field("InventoryServer.OSLevelId")
    .SetFormatter(Format.IfEmpty(null))
    .Options(new Options()
        .Table("Product")
        .Value("Id")
        .Label("Name")
    )
)
.Field(new Field("InventoryServer.ModelId")
    .SetFormatter(Format.IfEmpty(null))
    .Options(new Options()
        .Table("Product")
        .Value("Id")
        .Label("Name")
    )
)

Is there a way to tell Editor .NET and Editor Client to reference the same options collection?


Viewing all articles
Browse latest Browse all 3800

Trending Articles