Buy me a coffee :)

Wicket - jQuery UI

jQuery UI integration in Wicket 6.x, Wicket 7.x , Wicket 8.x & Wicket 9.x

DataTable, with checkbox column

Components / Samples





Kendo UI "Core" is Apache License 2.0 licensed, starting from version 2014.1.416.
Prior to version 2014.1.416, Kendo UI "Web" was licensed under GPLv3.

A pro version - with a commercial license - is also available, it provides additional widgets (see
To be able to use it, you need to change the ResourceReference with kendo.all.min.js

See also



  • Java
  • HTML
  • CSS
package com.googlecode.wicket.jquery.ui.samples.kendoui.datatable;

import java.util.List;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.util.lang.Generics;

import com.googlecode.wicket.jquery.core.Options;
import com.googlecode.wicket.kendo.ui.datatable.DataTable;
import com.googlecode.wicket.kendo.ui.datatable.column.CheckboxColumn;
import com.googlecode.wicket.kendo.ui.datatable.column.CurrencyPropertyColumn;
import com.googlecode.wicket.kendo.ui.datatable.column.IColumn;
import com.googlecode.wicket.kendo.ui.datatable.column.IdPropertyColumn;
import com.googlecode.wicket.kendo.ui.datatable.column.PropertyColumn;
import com.googlecode.wicket.kendo.ui.form.button.AjaxButton;
import com.googlecode.wicket.kendo.ui.panel.KendoFeedbackPanel;

public class CheckboxDataTablePage extends AbstractDataTablePage 
    private static final long serialVersionUID = 1L;
    public CheckboxDataTablePage() 
        // FeedbackPanel //
        final KendoFeedbackPanel feedback = new KendoFeedbackPanel("feedback");

        // Form //
        final Form<?> form = new Form<Void>("form");

        // DataTable //
        Options options = new Options();
        options.set("height", 430);
        options.set("pageable", "{ pageSizes: [ 25, 50, 100 ] }");
        options.set("columnMenu", true);
        options.set("persistSelection", true); // keep the selection when changing pages
        options.set("selectable", false); // not recommended to have both 'selectable' option and a CheckboxColumn

        final DataTable<Product> table = new DataTable<Product>("datatable", newColumnList(), newDataProvider(), 25, options) {

			private static final long serialVersionUID = 1L;

            public void onChecked(AjaxRequestTarget target, List<String> selectedKeys)
                final String message = "Selected keys: " + selectedKeys.toString();


        // Buttons //
        form.add(new AjaxButton("reload") 
            private static final long serialVersionUID = 1L;

            protected void onSubmit(AjaxRequestTarget target)
                table.reload(target, true);

        form.add(new AjaxButton("refresh") 
            private static final long serialVersionUID = 1L;

            protected void onSubmit(AjaxRequestTarget target)

    private static IDataProvider<Product> newDataProvider()
        return new ProductDataProvider();

    private static List<IColumn> newColumnList()
        List<IColumn> columns = Generics.newArrayList();

         * An IdPropertyColumn is mandatory for the checkbox selection to work properly.
         * If you don't want to display it just override the isVisible() method to always return false .
        columns.add(new IdPropertyColumn("ID", "id", 50));
        columns.add(new PropertyColumn("Name", "name"));
        columns.add(new PropertyColumn("Description", "description"));
        columns.add(new CurrencyPropertyColumn("Price", "price", 70));
        columns.add(new PropertyColumn("Vendor", ""));
        columns.add(new CheckboxColumn());

        return columns;
<!DOCTYPE html>
<html xmlns:wicket="">
	<title>Wicket Kendo UI: data-table with checkbox column</title>
	<form wicket:id="form">
		<div id="myTableId" wicket:id="datatable">[datatable]</div>
		<button wicket:id="reload">Reload</button>
		<button wicket:id="refresh">Refresh</button>
	<div wicket:id="feedback"></div>