Skip to content

Commit

Permalink
Use EditorUtils.setValue as editor type for category quick filter was…
Browse files Browse the repository at this point in the history
… changed from LookupEditor to ServiceLookupEditor
  • Loading branch information
volkanceylan committed Jan 11, 2025
1 parent ee0fe81 commit 0bee9b7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Decorators, Dictionary, EntityGrid, Lookup, LookupEditor, WidgetProps, deepClone, formatNumber, htmlEncode, localText, notifyError, parseDecimal, parseInteger, parseQueryString, serviceRequest, toId } from "@serenity-is/corelib";
import { Decorators, Dictionary, EditorUtils, EntityGrid, Lookup, WidgetProps, deepClone, formatNumber, htmlEncode, localText, notifyError, parseDecimal, parseInteger, parseQueryString, serviceRequest, toId } from "@serenity-is/corelib";
import { ExcelExportHelper, PdfExportHelper } from "@serenity-is/extensions";
import { Column, FormatterContext, NonDataRow } from "@serenity-is/sleekgrid";
import { CategoryRow, ProductColumns, ProductRow, ProductService, SupplierRow } from "../ServerTypes/Demo";
Expand Down Expand Up @@ -279,7 +279,7 @@ export class ProductGrid<P = {}> extends EntityGrid<ProductRow, P> {
if (q["cat"]) {
var category = flt.find(x => x.field == ProductRow.Fields.CategoryID);
category && (category.init = e => {
e.element.getWidget(LookupEditor).value = q["cat"];
EditorUtils.setValue(e.element.tryGetWidget(), q["cat"]);
});
}

Expand Down

0 comments on commit 0bee9b7

Please sign in to comment.