Kendo UI plugin

  • Tags : /
  • Latest : 1.0.0
  • Last Updated: 20 January 2012
  • Grails version : 2.0 > *
2 votes
Dependency :
compile ":kendo-ui:1.0.0"

Documentation

Summary

A Grails plugin to supply Kendo UI (kendoui.web-dataviz.2011.3.1129.open-source) dependencies.

Installation

grails install-plugin kendo-ui

Description

How to use

General use

Put the following lines:

<r:require module="kendo-ui"/>
<r:layoutResources/>
in the head tag (applicable for both Sitemesh template, and normal GSP files).

Autocomplete

(This tag is available in 1.0.1.BUILD-SNAPSHOT only. Sorry for inconvenience.)

Declare the following tag in your GSP file.

<k:autocomplete id="autoComplete"
  controller="my" action="data"
  min-length="1" data-text-field="name"
  param-q="self.value()"/>

Then write your controller like this:

class MyController {

def data() { def q = params['q'] render(contentType: "text/json") { array { // You may use q to query and put results here city name: "Berlin" city name: "Bangkok" } } } }

Please note that param-q in the tag maps to params['q'] in your controller.

The latest build snapshot can be found on:

https://chanwit.ci.cloudbees.com/job/grails-kendo-ui/ws/