I have the following problem > i am trying to group a column which is an Object and i have the following 2 problems, please see the video attached for better understanding:
When grouping > the naming of the grouped header > is the whole object name > while i need only the name of the object.
Also when its grouped > and i update the column that is grouped with > it changes my object's variables.
original Object = {
id: 1,
name: SUV
,}
when i perform the update the object on the header
To address your issues with grouping in the React Grid:
Group Header Naming: You can customize the group header name by using a renderer function in the grouping feature configuration. This allows you to format the header to display only the desired property, such as the name from your object. Here's an example:
Updating Grouped Column: When updating a grouped column, ensure that the update logic does not inadvertently modify the object structure. It seems like the update might be causing unintended changes to your object. Double-check your update logic to ensure it only modifies the intended properties without affecting the overall object structure.
If these suggestions do not resolve your issues, please provide some code snippets related to your implementation, and we can assist you further.
However i am facing an issue > i have a grouped group by Payment Method > lets say have POS and CASH > Making an update from Cash to POS > will create always create a new Group > with POS (event if some other records with grouped by POS) > until i commit the changes.
So i have a group of POS for committed records and a group of POS for uncommitted records > When i commit everything works as expected.
Is there a way to have on group of committed and uncommitted ? Please check video attached
You can't commit changes partly, this is that Tasnim meant. I saw you video, it is not very informative and we might didn't get you correctly. Please explain if it is not that you requested - to have uncommitted/just created records in a separate group and save it separately from other changes.