Hiya,
I was trying to disable a button inside a toolbar using the code below (code snippet from http://demos.telerik.com/kendo-ui/toolbar/api ):
$(".toggleRepeat").click(function() { var toolbar = $("#toolbar").data("kendoToolBar"), repeatButton = $("#repeat"), isDisabled = repeatButton.hasClass("k-state-disabled"); toolbar.enable(repeatButton, isDisabled);});After looking at the developer tools and inspecting the said button, I noticed it is not marked as aria-disabled. Is there a way to achieve this?
Kind regards, Byang
I need to create a list of menu items server side and then bind to the kendo menu, but I am unable to create items with child items.
View:
@model IEnumerable<MenuItem>@(Html.Kendo().Menu() .Name("Menu") .BindTo(Model))I was unable to find a way to make childOne and childTwo children of the parent menuItem and added to the allMenuItems list
The allMenuItems is what I am passing to the View
var parent = new MenuItem() {Text = "Parent"};var childOne = new MenuItem() { Text = "Child 1", ActionName = "Foo", ControllerName="Bar" };var childTwo = new MenuItem() { Text = "Child 2", ActionName = "Foo2", ControllerName = "Bar" };var allMenuItems = new List<MenuItem>();I need some sample code showing how to build this list server side.
Thank you.
Hello,
I have a form page with several dropdowns. Each dropdown has a different schema with different field names. I have seen this example of inline templates for non-MVVM dropdowns. http://demos.telerik.com/kendo-ui/dropdownlist/template
I was wondering if a similar option is available for MVVM dropdowns? I would like to include the template inside the HTML attributes instead of as a script block.
I try to add Data Validation to a range with List as validation type.
- first row is disabled to show column titles
- my validation range is B2:B50
Data validation for the first cell (B2) is working, but oher cells in B column does not work.
Can you help me ?
The code:
<div id="spreadsheet" style="width: 100%;"></div>
$(function () { var spreadsheet = $("#spreadsheet").kendoSpreadsheet({ toolbar: false, //sheetsbar: false, sheets: [ { rows: [ { cells: [ { value: "Fonds" }, { value: "Sens" }, { value: "Code" }, { value: "Quantité" }, { value: "Cours" } ] } ] }, { name: "ListAchatVente", rows: [ { cells: [ { value: "A" }, { value: "V" } ] } ] } ] }).data("kendoSpreadsheet"); var range = spreadsheet.activeSheet().range("1:1"); range.enable(false); var columnSens = spreadsheet.activeSheet().range("B2:B30"); columnSens.validation({ dataType: "list", from: "ListAchatVente!A1:B1", allowNulls: true, type: "reject", titleTemplate: "Valeur invalide", messageTemplate: "Valeur autorisée: 'A' ou 'V'." });});
http://jsfiddle.net/hectorcaban/0L2L8nx6/1/
the jsfiddle above is showing data placed in the wrong category.
372000000 should be on phase 2b instead of Phase1b
Any help would be greatly appreciated.
This is for anyone who is having trouble upgrading Kendo in a project used by TFS (our is TFS 2013). Besides taking forever, the upgrade wizard never worked. I would get a "TF10210: Source control encountered an error during delete operation: Exception of type 'System.OutOfMemoryException' was thrown." message.
HTH!
I've tried various methods of using template bound data with Url.Action with no luck.
<script type="text/x-kendo-template" id="kendo-template">
<a href='@Url.Action("action", "controller", new { id = "#=id"}'>Click me</a>
<script>
It seems that the # character gets encoded, so kendo is not able to render the template with the correct id.
How may I use the kendo-template together with the Url.Action helper?
Hi Everyone,
I am trying to remove the tools from the inline editor but even without a single tool, the tool bar still displays. Is there any way to remove/disable that?
Here's how I definte the tools and below is a sample Dojo:
$("#inlineEditor").kendoEditor({tools:[]});http://dojo.telerik.com/@dannycabrera/IXAQu
ThanksHi ,
I'm trying to see how can I add a ng-click attribute to a button inside a split button. I already saw an example of how to do it via template for a regular button but for this doesn't seem to work or Im missing something.
Thanks!