TaskBoard PHP Class Overview

The Kendo UI TaskBoard for PHP is a server-side wrapper for the Kendo UI TaskBoard widget.

Telerik UI for PHP DevCraft image

The TaskBoard is part of Telerik UI for PHP, a professional grade UI library with 90+ components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.

Getting Started


Below are listed the steps for you to follow when configuring the Kendo UI TaskBoard for local binding.

Step 1 Make sure you followed all the steps from the introductory article on Telerik UI for PHP—include the autoloader, JavaScript, and CSS files.

Step 2 Create a TaskBoard, and configure its columns and cards data source.

        $columnSettings = new \Kendo\UI\TaskBoardColumnSettings();
                    ->template("<span class='column-template-container'>
                            <span class='column-status'>
                                <span class='column-badge' id='badge-#= status #'>0</span>
                                <span class='column-text'>#: text #</span>
                            <span class='column-buttons'>#= buttons #</span>

        $taskboard = new \Kendo\UI\TaskBoard('taskBoard');
                        array("text"=> "To-Do", "id" => 1, "status" => "todo"),
                        array("text"=> "In Progress", "id" => 2, "status" => "inProgress"),
                        array("text"=> "Done", "id" => 3, "status" => "done")
                    array( "id"=> 1, "title"=> "Campaigns", "order"=> 1, "description"=> "Create a new landing page for campaign", "status"=> "todo", "color"=> "orange" ),
                    array( "id"=> 2, "title"=> "Newsletters", "order"=> 2, "description"=> "Send newsletter", "status"=> "todo", "color"=> "orange" ),
                    array( "id"=> 3, "title"=> "Ads Analytics", "order"=> 3, "description"=> "Review ads performance", "status"=> "todo", "color"=> "orange" ),
                    array( "id"=> 10, "title"=> "Customer Research", "order"=> 10, "description"=> "Refine feedback from user interviews", "status"=> "inProgress", "color"=> "blue" ),
                    array( "id"=> 11, "title"=> "Campaigns", "order"=> 11, "description"=> "Collaborate with designers on new banners", "status"=> "inProgress", "color"=> "blue" ),
                    array( "id"=> 13, "title"=> "Customer Journey", "order"=> 13, "description"=> "Review shopping cart experience", "status"=> "done", "color"=> "green" ),
                    array( "id"=> 14, "title"=> "Content", "order"=> 14, "description"=> "Publish new blogpost", "status"=> "done", "color"=> "green" ),
                    array( "id"=> 15, "title"=> "Post-Release Party", "order"=> 15, "description"=> "Plan new release celebration", "status"=> "done", "color"=> "green" )


Step 3 Output the TaskBoard by echoing the result of the render method.

    echo $taskboard->render();

Event Handling

You can subscribe to all TaskBoard events.

Specify Function Names

The example below demonstrates how to subscribe for events by specifying a JavaScript function name.

$taskboard = new \Kendo\UI\TaskBoard('taskBoard');

// The 'onDataBound' JavaScript function will handle the 'dataBound' event of the TaskBoard

echo $taskboard->render();
function onDataBound(e) {
    //handle the event

Provide Inline Code

The example below demonstrates how to provide inline JavaScript code.

$taskboard = new \Kendo\UI\TaskBoard('taskBoard');

// Provide inline JavaScript code that will handle the 'dataBound' event of the TaskBoard
$taskboard->dataBound('function() { /* Handle the dataBound event */ }');

echo $taskboard->render();


Client-Side Instances

To get a reference to an existing TaskBoard instance, use the jQuery.data() method. Once a reference is established, use the TaskBoard client-side API to control its behavior.

    $taskboard = new \Kendo\UI\TaskBoard('taskBoard');
    echo $taskboard->render();
    $(document).ready(function() {
        // // The constructor parameter is used as the 'id' HTML attribute of the TaskBoard
        var taskBoard = $("#taskBoard").data("kendoTaskBoard");

See Also

In this article
Not finding the help you need? Improve this article