Comments (5)
Umm.
I will need to investigate this.
A quick and dirty fix, so you get this working is to define a closure 'updateRowClosure' in your grid
It would look like this:
updateRowClosure {
def instance = VehicleOfInterest.get(params.id as Integer)
if (!instance) {
return 'default.not.found.message'
}
if (params.version) {
def version = params.version.toLong()
if (instance.version > version) {
return 'default.optimistic.locking.failure'
}
}
//call the beforeSave closure directly here - because for some reason the gridConfig is not passed to this closure
instance.properties = ...
log.debug "instance = $instance"
if (!instance.save(flush: true)) {
return instance.errors
}
}
This is only temporary, because it will get fixed in the next version.
Let me know how it goes.
Thanks!
from easygrid.
It worked - thanks!
from easygrid.
Great, I will let you know when I release a fix for the underlying issue.
I will reopen the bug, so I can keep track of it.
Thanks.
from easygrid.
This should work in 1.4.2, without the additional code.
from easygrid.
Closing old issues
from easygrid.
Related Issues (20)
- Error GormDatasourceService
- Another database selection
- Custom datasource not paging
- Default ordering for gorm not working HOT 1
- InlineEdit select dropdown is empty HOT 3
- Empty subGrid & empty detail in Master-detail grid HOT 1
- ColumnConfig.jqGrid.searchoptions.sopt cannot be overwriten (jqgrid) HOT 1
- Upgrade to grails v3? HOT 14
- required column property in GSP
- Question regarding column format and filters
- Filtering not working with Grails 2.2.5
- Inline Edit and Add
- Using Enum in columns
- export from list datasource
- Date filter not working 1.7.1
- EasyGrid internacionalization
- Has Tudor stopped supporting easygrid? HOT 2
- dynamicProperties
- How can I add a class to filter input field?
- Grails, Cannot get property 'DAutNaoProcessados' on null object
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easygrid.