Skip to main content

Posts

Showing posts from October, 2010

Partial page loading with Grails and Jquery

Most web applications greet their users with a fancy dashboards to display various statistics of interest. The generation of dashboards are often resource consuming and therefore it is advisable to optimize the page loading time. One option is to display page content while showing certain parts of the page in loading state. In this tip, this is achieved by partially loading parts of the page by using jQuery - javascript ajax library. Though I used Grails in this sample, it can be used for other web programming languages/platforms.

jqgrid grails : editing rows with drop-downs/combo boxes

Jqgrid is a jquery plugin that allows formatting data as table and has number of options - paging, sorting, filtering, inline editing etc. There are few good tutorials explaining the process to integrated jqgrid in your grails application. http://pramodnepal.com.np/?p=119 http://www.grails.org/plugin/jqgrid Following is a typical jquery script that can be used in a grails application. The property 'editable=true' make any of the field in grid as editable.