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

Is forceupdate mandatory when we perform selection change on Grid

1 Answer 143 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mukesh
Top achievements
Rank 1
Mukesh asked on 23 Jul 2019, 06:44 AM

Is forceupdate mandatory selectionChange when we perform selection change on Grid.

Can i display selected/ deselected status as checked/unchecked without calling forceupdate .

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 23 Jul 2019, 10:42 AM
Hello, Mukesh,

The forceUpdate is needed, so the app is refreshed, but it can be refreshed with setState as well.

In general, the state has to be changed to reflect the newly selected items, but in our demos we used forceUpdate, to reduce the code size, so we can demonstrate the feature with cleaner code.

Regards,
Stefan
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Mukesh
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or