Skip to content

Added custom sorting on address columns and fixed rating column #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: vnext
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { erpDataService } from "../../services/ErpDataService";
import { BadgeVariant } from "../../models/BadgeVariant";
import { OrderStatus } from "../../models/OrderStatus";
import { DataPoint } from "../../models/DataPoint";
import { FullAddressFilteringOperand } from "../../CustomFilteringOperand";
import { FullAddressFilteringOperand } from "../../services/custom-operations/CustomFilteringOperand";
import BILL_PAID from "../../assets/icons/bill_paid.svg";
import CHECK from "../../assets/icons/check.svg";
import DELIVERY from "../../assets/icons/delivery.svg";
Expand Down Expand Up @@ -130,7 +130,7 @@ const ErpHGrid = () => {
const rating: number = ctx.cell.value;
return (
<>
<IgrRating value={rating}></IgrRating>
<IgrRating value={rating} readOnly={true} min={2} max={4}></IgrRating>
</>
);
};
Expand Down Expand Up @@ -459,7 +459,7 @@ const ErpHGrid = () => {
field="orderInformation"
header="Address"
dataType="string"
sortable={true}
sortable={false}
resizable={true}
visibleWhenCollapsed={false}
formatter={formatAddress}
Expand All @@ -471,7 +471,7 @@ const ErpHGrid = () => {
field="orderInformation"
header="Address"
dataType="string"
sortable={true}
sortable={false}
resizable={true}
visibleWhenCollapsed={true}
formatter={formatFullAddress}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IgrStringFilteringOperand } from "igniteui-react-grids/grids";
import { IgrStringFilteringOperand, IFilteringStrategy } from "igniteui-react-grids/grids";

Check failure on line 1 in projects/erp-hierarchical-grid/src/services/custom-operations/CustomFilteringOperand.ts

View workflow job for this annotation

GitHub Actions / build (22.x)

'IFilteringStrategy' is defined but never used. Allowed unused vars must match /^_/u

export class FullAddressFilteringOperand extends IgrStringFilteringOperand {
public constructor(isAddressShort: boolean = false) {
Expand Down
Loading