Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using a toolbar template with knockout-kendo #247

Open
cscotney opened this issue Oct 11, 2017 · 0 comments
Open

Using a toolbar template with knockout-kendo #247

cscotney opened this issue Oct 11, 2017 · 0 comments

Comments

@cscotney
Copy link

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>

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant