title | page_title | description | slug | position |
---|---|---|---|---|
Data Binding |
Data Binding - Gantt - Kendo UI for Vue |
Bind the Kendo UI Gantt wrapper for Vue to local data arrays or remote data services. |
databinding_gantt |
1 |
The Gantt enables you to bind it to a list of possible values.
To populate the Gantt with data, bind the component to either:
Locally defined values are best for small, fixed sets of data. For larger datasets, use remote data services.
To provide the Gantt with local data:
- Define the array in the
data
object of the Vue application. - Refer it during the initialization of the Gantt through the
:data-source
property.
{% meta height:750 %} {% embed_file data-binding/local-data/main.vue preview %} {% embed_file data-binding/local-data/main.js %} {% endmeta %}
To provide the Gantt with data by using remote data services:
- Create a new
ganttdatasource
object and, optionally, aganttdependencydatasource
object. - Refer the
ganttdatasource
andganttdependencydatasource
objects during the initialization of the Gantt through the:data-source-ref
anddependencies-data-source-ref
properties.
The [ganttdatasource
]({% slug overview_ganttdatasource %}) object contains the configuration for the necessary data operation actions such as Read
, Update
, Create
, or Destroy
. To refer the remote data services, use the Transport
object properties of the ganttdatasource
—for example, :transport-read-url
, :transport-update-url
, and so on.
The [ganttdependencydatasource
]({% slug overview_ganttdependencydatasource %}) object is responsible for the relations between the tasks that are visualized in the widget. The object contains the configurations for the services references for the read, update, create, destroy etc operations for the dependencies.
{% meta height:750 %} {% embed_file data-binding/remote-data/main.vue preview %} {% embed_file data-binding/remote-data/main.js %} {% endmeta %}