I have JQuery 2.1.0 and Angular 1.4.0 registered on the page.
I am trying to integrate Kendo in our current app as a POC and I am getting the following error when trying to use the Splitter, although this error looks like it has nothing to do with the splitter.
I am using the kendo.all script.
Uncaught TypeError: t.register is not a function(anonymous function) @ kendo.all.min.js:66(anonymous function) @ kendo.all.min.js:66(anonymous function) @ kendo.all.min.js:66(anonymous function) @ kendo.all.min.js:86(anonymous function) @ kendo.all.min.js:9(anonymous function) @ kendo.all.min.js:9
the t.register it is talking about is, I am not using angular2 at this time.
t.register("kendo/angular2",["angular2/angular2"]
I have also tried to just use kendo.core, kendo.angular, and kendo.splitter instead of the kendo-all script. When using these scripts I get the following error:
TypeError: d.ui.Resizable is not a function at Object.s (https://localhost/ADG.MAP.Web/Scripts/kendo/js/kendo.splitter.min.js:9:577) at new g.extend.init (https://localhost/ADG.MAP.Web/Scripts/kendo/js/kendo.splitter.min.js:9:1460) at HTMLDivElement.<anonymous> (https://localhost/ADG.MAP.Web/Scripts/kendo/js/kendo.core.min.js:10:3674) at Function.jQuery.extend.each (https://localhost/ADG.MAP.Web/scripts/jquery/jquery-2.1.0.js:381:23) at jQuery.fn.jQuery.each (https://localhost/ADG.MAP.Web/scripts/jquery/jquery-2.1.0.js:137:17) at e.fn.(anonymous function) [as kendoSplitter] (https://localhost/ADG.MAP.Web/Scripts/kendo/js/kendo.core.min.js:10:3651) at v (https://localhost/ADG.MAP.Web/Scripts/kendo/js/kendo.angular.min.js:9:433) at r (https://localhost/ADG.MAP.Web/Scripts/kendo/js/kendo.angular.min.js:9:1509) at link (https://localhost/ADG.MAP.Web/Scripts/kendo/js/kendo.angular.min.js:9:8342) at invokeLinkFn (https://localhost/ADG.MAP.Web/scripts/angularjs/angular.js:8604:9) <div kendo-splitter="" style="height:100%;width:100%;border:0;" k-panes="[ {collapsible: false, size: '70%'} , {collapsible: true, collapsed: true, size: '30%' }]" k-orientation="'vertical'" data-role="splitter" class="k-widget k-splitter">Using the individual scripts I at least and able to get into the splitter code.
Here is the splitter I am trying to create in my app. http://dojo.telerik.com/@jmaronge/IROyo
Any help would be greatly appreciated. I need to get this POC done within the next week to present.
Jason
We want to be able to manage a list of documents in a MVC grid.
Essentially, the user should be able to select the document type from a dropdown,select a document to upload and when the user clicks save, the document gets saved to the database.
When the user views the grid, the document will provide a link to download the document. Can you please advise if this is doable?
@(Html.Kendo().DropDownList() .Name(LayoutTemplate") .OptionLabel("Templates") .DataTextField("Text") .DataValueField("Value") .DataSource(source => { source.Read(read => { read.Action("GetLayoutTemplatesDropdown", LayoutTemplate"); }); })) <button class="loadLayout" type="button">Load</button>
Second dropdownlist:
@(Html.Kendo().DropDownList() .Name("CreateTemplateCSS") .OptionLabel("Choose one") .DataTextField("Text") .DataValueField("Value") .Template("<span class=\"glyphicon glyphicon-font\"></span> #:data.Text#") .DataSource(source => { source.Read(read => { read.Action("GetTemplateCSSTemplatesDropdown", "TemplateCSSTemplate") .Data("filterTemplateCSSTemplates"); }); }) )Javascript
function filterTemplateCSSTemplates() { return { layoutTemplateID: $("#LayoutTemplate").val() }; } $(".loadLayout").on("click", function (e) { var layoutTemplateID = $("#LayoutTemplate").val(); if (layoutTemplateID) { $("#CreateTemplateCSS").data("kendoDropDownList").refresh(); } });A function bound to 'set' on a viewModel is not called unless focus is lost to some other field, the window background, or a button if it is enabled. Clicking the X to close the window does not register as a change in focus. This leads to awkward behavior. Update one text field and click X and the window closes without having a chance to save the value. Update more than one field and the last field edit can be lost.
The attached Dojo snippet shows the problem. A lot of other stuff works and I will be using it a lot in my app.
Rick
In my Kendo.Grid I have:
columns.Bound(c => c.FORMRIGHTTYPEID).Width("25").Title("Form Right").HtmlAttributes(new { @class = "text-align: center;" })
.Template(@<text>
@if (item.FORMRIGHTTYPEID != null)
{
@DisplayRight((long)item.FORMRIGHTTYPEID)
}
</text>);
Note that I am displaying a text value associated w/the FORMRIGHTTYPEID numeric value. I have made the grid "Filterable":
@(Html.Kendo().Grid<EPIMS.Models.FORMRIGHTS>()
...
...
.Scrollable()
.Groupable()
.Sortable()
.Filterable(filterable => filterable
.Extra(false)
.Operators(operators => operators
.ForString(str => str.Clear()
.Contains("Contains")
)))
.Pageable(pageable => pageable
.Refresh(true)
.PageSizes(true)
.ButtonCount(5))
.BindTo(Model)
)
My problem is that the Filter option shows "Show items with value that: Is equal to" but does not allow me to enter text. Rather (and as expected), the value MUST BE numeric as the column is bound to a numeric value field.
Is it possible to customize the Filter?
Thanks