This is a migrated thread and some comments may be shown as answers.

Grid Grouping problem

1 Answer 360 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Salim
Top achievements
Rank 1
Salim asked on 21 Feb 2018, 03:12 PM

I’m trying to remove the grouping programmatically by clearing the state:

    this.state = { skip: 0, take: this.state.take, filter: this.state.filter, sort: this.state.sort, group: []};

the data  is actually being un grouped but the ui is not refreshed as in the attached screenshot.

 

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 22 Feb 2018, 11:52 AM
Hello Salim,

When the Grid state is changed programmatically, the data should be also processed in accordance with the new state so that the ungrouped data is displayed in the Grid, e.g.:

https://plnkr.co/edit/PZyODq0JwFSsAg253U5e?p=preview

Alternatively, you can use an automatic binding directive and resetting the state will result in automatic rerendering of the Grid:

https://plnkr.co/edit/wMQRfPAzaEMnHnKE61Rc?p=preview

I hope this helps.

Regards,
Dimiter Topalov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
General Discussions
Asked by
Salim
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or