After Several time i didn’t post anything about programming, today i force myselft to fullfill my promise long time ago to post something about Grails and JqGrid. Before i write more techical thing i will tell U the story why i make a promise to myselft to write about this post. The story start long time ago when i have some project that use Grails and JqGrid. Backday i really almost frustated how to work with that two because very minim information on internet, so i make promise to myselft if i can use that two i will post it on my blog.
Ok we done with all nostalgia thing, let that about Grails and JqGrid. Grails is one of may full stack framework that use Groovy and Best Bread of Java Technology Framework like Spring, Hibernate, Etc and JqGrid is Jquery Plugin that produce cool UI grid and form on one screen (full CRUD). JqGrid with all fascinating feauture is like some “preaty girl” that force the Man to fulfill all she need. So if you want work with JqGrid please prepare your backend to produce all JqGrid requiredment so JqGrid can show her beauty on Screen that make your user adore you
.
I belive some wise guy say “Stop Talking show me the Code”, So this is it my code how to integrating JqGrid Ui with Grails Backend, enjoy yourself:
masterAccounts = masterAccounts.collect {
[cell: [it.masterAccountCode, it.masterAccountDetails, it.masterAccountNotes, it.value, it.isInvulnerable], id: it.id]
}
more you can find on my gist on github (sorry i don’t really know how to embed my gist in this wordpress.com environment so i just give u the link only)
Sorry if the code is not really code effective on groovy way, cause when i code this thing i still don’t really familiar with groovy and all cool features like Metadata, etc. I will be honest until now i still don’t really get it
, but maybe someday i will learn groovy more deeper and refactor the code. Have nice day.
PS: Maybe their are JqGrid Grails Plugin now, but i don’t know please check Grails Plugins Site if You curios.















