Sign in to edit and +1 items.
Login required
Download

Kendo UI plugin

(0)
Author(s) Chanwit Kaewkasi
Current Release 1.0.0   (4 months ago)
Grails Version 2.0 > *
License(s) GNU General Public License 3
Tags
Dependency
compile ":kendo-ui:1.0.0"
A Grails plugin to supply Kendo UI (kendoui.web-dataviz.2011.3.1129.open-source) dependencies.
Last updated by admin 4 months ago
grails install-plugin kendo-ui
Last updated by chanwit 3 months ago

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/

Last updated by admin 4 months ago
Last updated by admin 4 months ago