Skip to content
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
2 changes: 1 addition & 1 deletion samples/grids/grid/column-moving-options/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default class Sample extends React.Component<any, any> {
return (
<div style={{display: 'flex'}}>
<span>{column.field}</span>
<span style={{marginLeft: 'auto'}} onPointerDown={(e: any) => this.toggleColumnPin(column.field)}>📌</span>
<span style={{marginLeft: 'auto', cursor: 'pointer'}} onPointerDown={(e: any) => this.toggleColumnPin(column.field)}>📌</span>
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion samples/grids/grid/column-moving-styles/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export default class Sample extends React.Component<any, any> {
return (
<div style={{display: 'flex'}}>
<span>{column.field}</span>
<span style={{marginLeft: 'auto'}} onPointerDown={(e: any) => this.toggleColumnPin(column.field)}>📌</span>
<span style={{marginLeft: 'auto', cursor: 'pointer'}} onPointerDown={(e: any) => this.toggleColumnPin(column.field)}>📌</span>
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion samples/grids/grid/column-pinning-options/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default class Sample extends React.Component<any, any> {
return (
<div style={{display: 'flex'}}>
<span>{column.field}</span>
<span style={{marginLeft: 'auto'}} onPointerDown={(e: any) => this.toggleColumnPin(column.field)}>📌</span>
<span style={{marginLeft: 'auto', cursor: 'pointer'}} onPointerDown={(e: any) => this.toggleColumnPin(column.field)}>📌</span>
</div>
);
}
Expand Down
6 changes: 4 additions & 2 deletions samples/grids/grid/column-selection-mode/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ export default class Sample extends React.Component<any, any> {
isWrappingEnabled="true">
<IgrPropertyEditorPropertyDescription
propertyPath="ColumnSelection"
name="columnSelectionEditor"
label="Column Selection">
name="ColumnSelectionEditor"
valueType="EnumValue"
dropDownNames={["None", "Single", "Multiple", "MultipleCascade"]}
dropDownValues={["None", "Single", "Multiple", "MultipleCascade"]}>
</IgrPropertyEditorPropertyDescription>
</IgrPropertyEditorPanel>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export default class Sample extends React.Component<any, any> {
const column = e.dataContext.column;
return (
<div style={{ display: 'flex', alignItems: 'center', gap: '5px' }}>
<span draggable="false" onClick={(e: any) => this.toggleColumnGroup(column)}>
<span draggable="false" style={{ cursor: 'pointer' }} onClick={(e: any) => this.toggleColumnGroup(column)}>
{this.columnGroupStates.get(column) ? "🔽" : "🔼"}
</span>
<span>{column.header}</span>
Expand Down
11 changes: 11 additions & 0 deletions samples/grids/grid/row-pinning-extra-column/src/index.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
/* shared styles are loaded from: */
/* https://dl.infragistics.com/x/css/samples/shared.v8.css */

.customIcon {
display: flex;
width: 100%;
justify-content: center;
}

.customIconSpan {
cursor: pointer;
}

12 changes: 10 additions & 2 deletions samples/grids/grid/row-pinning-extra-column/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default class Sample extends React.Component<any, any> {
primaryKey="ID"
cellSelection="none">
<IgrColumn
width="70px"
width="100px"
filterable={false}
pinned={true}
bodyTemplate={this.webGridRowPinCellTemplate}>
Expand Down Expand Up @@ -103,15 +103,23 @@ export default class Sample extends React.Component<any, any> {
}

public webGridRowPinCellTemplate = (e: {dataContext: IgrCellTemplateContext}) => {
const grid = this.grid;
const index = e.dataContext.cell.row.index;
const row = grid.rowList.toArray().find(x => x.index === index);
if (row && row.pinned && row.disabled) {
return (<></>);
}
return (
<span onPointerDown={(e: any) => this.toggleRowPin(index)} style={{ cursor: 'pointer'}}>📌</span>
<div className='customIcon'>
<span onPointerDown={(e: any) => this.toggleRowPin(index)} className='customIconSpan'>📌</span>
</div>
);
}

public toggleRowPin(index: number) {
let grid = this.grid;
grid.getRowByIndex(index).pinned = !grid.getRowByIndex(index).pinned;
grid.markForCheck();
}
}

Expand Down
6 changes: 5 additions & 1 deletion samples/grids/grid/row-selection-mode/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@ export default class Sample extends React.Component<any, any> {
ref={this.propertyEditorPanel1Ref}>
<IgrPropertyEditorPropertyDescription
name="selectionType"
propertyPath="RowSelection">
propertyPath="RowSelection"
valueType="EnumValue"
label="Row Selection"
dropDownNames={["None", "Single", "Multiple"]}
dropDownValues={["None", "Single", "Multiple"]}>
</IgrPropertyEditorPropertyDescription>
<IgrPropertyEditorPropertyDescription
name="hideRowSelectors"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export default class Sample extends React.Component<any, any> {
return (
<div style={{display: 'flex'}}>
<span>{column.field}</span>
<span style={{marginLeft: 'auto'}} onClick={(e: any) => this.toggleColumnPin(column)}>📌</span>
<span style={{marginLeft: 'auto', cursor: 'pointer'}} onClick={(e: any) => this.toggleColumnPin(column)}>📌</span>
</div>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export default class Sample extends React.Component<any, any> {
return (
<div style={{display: 'flex'}}>
<span>{column.field}</span>
<span style={{marginLeft: 'auto'}} onClick={(e: any) => this.toggleColumnPin(column)}>📌</span>
<span style={{marginLeft: 'auto', cursor: 'pointer'}} onClick={(e: any) => this.toggleColumnPin(column)}>📌</span>
</div>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export default class Sample extends React.Component<any, any> {
return (
<div style={{display: 'flex'}}>
<span>{column.field}</span>
<span style={{marginLeft: 'auto'}} onClick={(e: any) => this.toggleColumnPin(column)}>📌</span>
<span style={{marginLeft: 'auto', cursor: 'pointer'}} onClick={(e: any) => this.toggleColumnPin(column)}>📌</span>
</div>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ export default class Sample extends React.Component<any, any> {
isWrappingEnabled="true">
<IgrPropertyEditorPropertyDescription
propertyPath="ColumnSelection"
name="columnSelectionEditor"
label="Column Selection">
name="ColumnSelectionEditor"
valueType="EnumValue"
dropDownNames={["None", "Single", "Multiple", "MultipleCascade"]}
dropDownValues={["None", "Single", "Multiple", "MultipleCascade"]}>
</IgrPropertyEditorPropertyDescription>
</IgrPropertyEditorPanel>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ export default class Sample extends React.Component<any, any> {
<IgrColumn
field="GrammyNominations"
header="Grammy Nominations"
dataType="string"
dataType="number"
resizable={true}>
</IgrColumn>
<IgrColumn
field="GrammyAwards"
header="Grammy Awards"
dataType="string"
dataType="number"
resizable={true}>
</IgrColumn>
<IgrRowIsland
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ export default class Sample extends React.Component<any, any> {
ref={this.propertyEditorPanel1Ref}>
<IgrPropertyEditorPropertyDescription
name="selectionType"
propertyPath="RowSelection">
propertyPath="RowSelection"
valueType="EnumValue"
label="Row Selection"
dropDownNames={["None", "Single", "Multiple"]}
dropDownValues={["None", "Single", "Multiple"]}>
</IgrPropertyEditorPropertyDescription>
<IgrPropertyEditorPropertyDescription
name="hideRowSelectors"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default class Sample extends React.Component<any, any> {
return (
<div style={{display: 'flex'}}>
<span>{column.field}</span>
<span style={{marginLeft: 'auto'}} onPointerDown={(e: any) => this.toggleColumnPin(column.field)}>📌</span>
<span style={{marginLeft: 'auto', cursor: 'pointer'}} onPointerDown={(e: any) => this.toggleColumnPin(column.field)}>📌</span>
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion samples/grids/tree-grid/column-moving-styles/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default class Sample extends React.Component<any, any> {
return (
<div style={{display: 'flex'}}>
<span>{column.field}</span>
<span style={{marginLeft: 'auto'}} onPointerDown={(e: any) => this.toggleColumnPin(column.field)}>📌</span>
<span style={{marginLeft: 'auto', cursor: 'pointer'}} onPointerDown={(e: any) => this.toggleColumnPin(column.field)}>📌</span>
</div>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default class Sample extends React.Component<any, any> {
return (
<div style={{display: 'flex'}}>
<span>{column.field}</span>
<span style={{marginLeft: 'auto'}} onPointerDown={(e: any) => this.toggleColumnPin(column.field)}>📌</span>
<span style={{marginLeft: 'auto', cursor: 'pointer'}} onPointerDown={(e: any) => this.toggleColumnPin(column.field)}>📌</span>
</div>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default class Sample extends React.Component<any, any> {
return (
<div style={{display: 'flex'}}>
<span>{column.field}</span>
<span style={{marginLeft: 'auto'}} onPointerDown={(e: any) => this.toggleColumnPin(column.field)}>📌</span>
<span style={{marginLeft: 'auto', cursor: 'pointer'}} onPointerDown={(e: any) => this.toggleColumnPin(column.field)}>📌</span>
</div>
);
}
Expand Down
6 changes: 4 additions & 2 deletions samples/grids/tree-grid/column-selection-mode/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ export default class Sample extends React.Component<any, any> {
isWrappingEnabled="true">
<IgrPropertyEditorPropertyDescription
propertyPath="ColumnSelection"
name="columnSelectionEditor"
label="Column Selection">
name="ColumnSelectionEditor"
valueType="EnumValue"
dropDownNames={["None", "Single", "Multiple", "MultipleCascade"]}
dropDownValues={["None", "Single", "Multiple", "MultipleCascade"]}>
</IgrPropertyEditorPropertyDescription>
</IgrPropertyEditorPanel>
</div>
Expand Down
5 changes: 4 additions & 1 deletion samples/grids/tree-grid/row-selection-mode/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ export default class Sample extends React.Component<any, any> {
<IgrPropertyEditorPropertyDescription
name="selectionType"
propertyPath="RowSelection"
label="Row Selection">
valueType="EnumValue"
label="Row Selection"
dropDownNames={["None", "Single", "Multiple"]}
dropDownValues={["None", "Single", "Multiple"]}>
</IgrPropertyEditorPropertyDescription>
<IgrPropertyEditorPropertyDescription
name="hideRowSelectors"
Expand Down