Replies: 1 comment 10 replies
-
do you mean keeping track of the visual styling of what's saved and what not (similar to Example 12)? I mean this goes back to our previous discussion that it could be nice to move that to some form of Edit Queue Service of some kind. I don't personally plan to work on that but if you wish to start then I would totally accept a PR for a new feature (it could be built-in or as an optional plugin if you think it could be huge). Because yes we tend to copy over and over the same kind of code to do this so it would make sense to move this to a centralized service in the future. The only thing I'm not sure about in what you said is for validation of the queue? |
Beta Was this translation helpful? Give feedback.
-
Hey @ghiscoding.
finally I've started our company project with a dynamic OData based backend that provides column and grid configs for dynamically rendering and handling CRUD with a Slickgrid.
so far we're tracking changes in an editQueue, much like some examples you've made, and send updates/adds with a save all button to our backend, refreshing the current backend query on success. deletes are currently handled as one-offs but I plan to look into the rowselection option to also support bulk deletes.
our next step is to now improve the save all button to check all modified rows, iterate over their cells and trigger the validators to see if all client side validations are covered before executing the backend call. invalid cells will be highlighted with a individual cell css class applied.
so far the ideas. now I'm sure we're not the first ones to think about this and I recall our discussions to generalize the editQueue concept. now I wonder whether we should ideally think bigger and create a plugin to take care of all the parts involved.
would you see something like that as too big of a concern for slickgrid-universal itself and better kept in user land?
Beta Was this translation helpful? Give feedback.
All reactions