gridjs icon indicating copy to clipboard operation
gridjs copied to clipboard

re-render the grid after a particular event like clcking a button

Open abhaysinghs772 opened this issue 2 years ago • 5 comments

Is your feature request related to a problem? Please describe. I am using grid.js in my admin panel of a project, where i have a button in my action's column. i want to refresh the grid after the click event of button. i don't want to reload the entire page again to show updated data.

i am using vanilla javaScript only.

Additional context Screenshot from 2022-05-17 10-59-41

abhaysinghs772 avatar May 17 '22 05:05 abhaysinghs772

you could listen on cellClick event. the callback definition is in here https://github.com/grid-js/gridjs/blob/5fae726edb4471f517115bc377507e7b56453be4/src/view/table/events.ts#L6

bokunodev avatar May 28 '22 16:05 bokunodev

Hey @abhaysinghs772 how did you add custom icons /buttons inside Grid.js?

vicentematus avatar Jun 24 '22 00:06 vicentematus

@vicentematus you can put html inside the cell. its on the documentation.

bokunodev avatar Jun 24 '22 01:06 bokunodev

@vicentematus you can put html inside the cell. its on the documentation.

Thank you very much. Now it's working

vicentematus avatar Jun 24 '22 02:06 vicentematus

I need that too, very confused on how to update after some data change, I'll attempt to forceRender but I'm unsure that is what I need

naaando avatar Aug 30 '22 12:08 naaando

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 29 '22 13:10 stale[bot]

I have the same issue: on button click in a cell the table re-renders.

LB26121 avatar Nov 07 '22 12:11 LB26121

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 07 '23 15:01 stale[bot]