Methods in default GridConnector, see the "About" for how to create gridConnector
let columnConfigArray = this.gridConnector.getColConfig();
this.gridConnector.setColConfig(columnConfigArray);
//resets to default (html, or when grid loaded of no html)
this.gridConnector.setColConfig(null)
Interface
export interface ColConfig {
colWidth?: number;
colRowTemplate?: string;
colHeaderTemplate?: string;
colField: string;
colPinLeft?: boolean;
colPinRight?: boolean;
colHeaderName?: string;
colAddLabelAttributes?: string;
colAddFilterAttributes?: string;
colAddRowAttributes?: string;
colFilterMenu?: string;
colLabelMenu?: string;
colRowMenu?: string;
colHidden?: boolean;
colDragDrop?: string;
colResizeable?: string;
colSort?: string;
colFilter?: string;
colFilterTop?: boolean;
colCss?: string;
colType?: string;
__colSortHelper?: number;
__colHeaderTemplateGenerated?: string;
__colRowTemplateGenerated?: string;
}
- Can be used to get current scrolltop
- Use this with setInitTop if you want to go between master/detail and have same rows displayed
- Forces grid to try and update language
- Raise event on the grid element, usefull for overriding default behavior
- I really dont want much of this, use at own expense
- Set scroll value grid will use when it loads
- Useful for when going back from a detail view