resources.dataTextField String (default: "text")

The field of the resource data item which represents the resource text.

Example

<div id="taskBoard"></div>

<script>
  $("#taskBoard").kendoTaskBoard({
    resources: [{
      field: "category",
      dataColorField: "Color",
      dataTextField: "Text",
      dataValueField: "Value",
      dataSource: [
        { Value: "urgent", Text: "Urgent", Color: "orange" },
        { Value: "highpriority", Text: "High Priority", Color: "blue" },
        { Value: "lowpriority", Text: "Low Priority", Color: "green" }
      ]
    }],
    dataSource: [
      { id: 1, order: 1, title: "Task 1", description: "Description 1", status: "backlog", category: "urgent" },
      { id: 2, order: 2, title: "Task 11", description: "Description 11", status: "backlog", category: "urgent" },
      { id: 3, order: 3, title: "Task 2", description: "Description 2", status: "doing", category: "highpriority" },
      { id: 4, order: 4, title: "Task 22", description: "Description 22", status: "doing", category: "lowpriority" },
      { id: 5, order: 5, title: "Task 3", description: "Description 3", status: "done", category: "lowpriority" }
    ],
    columns: [
      { text: "Doing", status: "doing" },
      { text: "Backlog", status: "backlog" },
      { text: "Done", status: "done" }
    ]
  });
</script>
In this article
Not finding the help you need? Improve this article