Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Using a toolbar template with knockout-kendo #247

Description

@cscotney

As per similar examples with row templates. I thought i would be able to call upon a scripts id with the template required for the grid. Unfortunately it doesn't seem to do this. Data is retrieved from observable array without toolbar option selected. Any ideas would be greatly appreciated.

       <div id="importedGrid" style="display:none;" data-bind="kendoGrid: { data:Arr, scrollable: true, sortable: true, pageable: { pageSize: 50 }, toolbar:'toolbar-template', useKOTemplates: true }"> </div>

<script type="text/html" id="toolbar-template">
	<div class="toolbar">
		<a href="\\#" class="k-grid-add k-link k-button" title="Add new candidate">Add new candidate</a>
		<a href="\\#" class="k-grid-clear k-link k-button" title="Clear candidates">Clear candidates</a>
		<span>
			<label for="forceUploadCheckbox">Force upload</label>
			<input type="checkbox" id="forceUploadCheckbox" />
		</span>
		<a href="\\#" class="k-grid-upload k-link k-button pull-right" title="Upload candidates">Upload candidates</a>
		<a href="\\#" class="k-grid-import k-link k-button pull-right" data-bind="click: function(){ $root.add();}" title="Upload candidates">Import File</a>
		<input class="k-grid-input k-button pull-right" type="file" name="upload" id="File" enctype="multipart/form-data" />

	</div>
</script>

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions