Hello All,
I've got a product owner that requires the in-cell editing without needing to press Enter button. They want the cell to automatically enter edit mode simply by arrowing around the grid. My dev team is struggling to make this happen. Any suggestions or samples that would help us accomplish this? If we aren't able to make this work, we will have to use an entirely different framework (or roll our own) for grids, which I'm hoping to avoid.
Thanks
Hi,
Is it possible to add a row at a specified index in the grid?
In the documentation, the add row only inserts a row at the top of the grid.
I would like to achieve something similar:
If I click on the custom add button the new row editor appears at a predefined index in the grid.
Thanks,
Balazs
I want to reset the filter settings without making the call again. I need to do this because at the change of page I have to set the grid without filters but without call the function again because the data are the same
This is my component:
gridData: GridDataResult;
state: State = {
skip: 0,
take: 25
};
clearState: State = {
skip: 0,
take: 25
};
//DATASOURCE
products: any[] = [];
public dataStateChange(state: DataStateChangeEvent): void {
this.state = state;
this.gridData = process(this.products, this.state);
}
public filterChange(filter: CompositeFilterDescriptor): void {
this.filter = filter;
this.products = filterBy(this.products, filter);
}
public clearFilters() {
this.state = this.clearState;
this.gridData = process(this.products, this.clearState);
}
public getProducts(){
this.myService.getData(year).subscribe(data => {
this.products= data;
this.gridData = process(data, this.state);
});
}
<kendo-grid
[data]="gridData"
[pageSize]="state.take"
[skip]="state.skip"
[sort]="state.sort"
[filter]="state.filter"
[sortable]="true"
[pageable]="true"
[filterable]="true"
[selectable]="true"
[resizable]="true"
(filterChange)="filterChange($event)"
(dataStateChange)="dataStateChange($event)">
<ng-template ngFor [ngForOf]="columns" let-column>
<kendo-grid-column
width="{{column.width}}"
format="{{column.format}}"
filter="{{column.filter}}"
field="{{column.value}}"
title="{{column.title}}">
</kendo-grid-column>
</ng-template>
</kendo-grid>
if I call the clearFilters function the filters are reset but the arrows remain on the previously filtered columns. then the data in the table returns as originally but the css part of the table remains filtered (attached img)