kendo-ui

kendo ui, angular require validation for numeric text box

倾然丶 夕夏残阳落幕 提交于 2019-12-04 17:12:38
I am trying to use a kendo numeric text box with angular validation (ng-required) however I'm not able to get it working. The ng-required attribute on this element has no effect on the form validation status. From my understanding, the reason why this doesn't work is because kendo numeric text box uses k-ng-model to store it's value, whereas the angular validation works only with ng-model. Has anyone else seen this issue, are there any workarounds? I have found a workaround that involves using the kendo-numeric-text-box along with a hidden input field which makes use of ng-model. <input data

kendo Grid DataSource with OData format = json

不打扰是莪最后的温柔 提交于 2019-12-04 17:11:46
We've asp.net web api odata enabled service which supports variety of OData formats such as application/json;odata=fullmetadata This services is working great with WCF Data Service Client and JayData But our response seems not to be compatible with our kendo grid dataSource I've investigated the response and here is the difference: The demo of kendoUI site which is working fine has following response: "__count": "91" And the response content type is: text/javascript;charset=utf-8 You can see the sample of kendo UI demo at: http://demos.kendoui.com/web/grid/index.html And here is our response:

How to refresh the Kendo UI grid

耗尽温柔 提交于 2019-12-04 16:32:51
问题 I am trying to refresh a Kendo UI grid but have not yet been successful. Would anybody please advise what I missed or what I did wrong? I have the following code: .cshtml: $('#btnRefresh').click(function (e){ $.ajax({ type: 'POST', url: "@(Url.Content("~/Administration/RefreshAll/"))", success: function () { $("#Product").data("kendoGrid").dataSource.read(); $('#Product').data('kendoGrid').refresh(); //grid.refresh(); location.reload(true); }, error: function (){ $("#btnRefresh").removeAttr(

Kendo Grid Export To Excel Currency formatting

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 14:56:24
I am trying to export my Kendo grid to excel. It works fine except the formatting is missing. I think it is because I am using a template. The Telerik documentation explicitly states: To format the cell values during the export of the Grid to Excel, set the format option of the cells. I have tried this and it is not working: columns: [ { field: "EntryWage", headerTemplate: entryLevelWageColumnHeading + "<span name='EntryWage' class='k-icon k-i-close remove' style='float: right;'></span>", width: 125, attributes: { style: "text-align:right;" }, format: "{0:c}", template: "#= (EntryWage != null)

Kendo UI Grid Refesh on Dropdown Selection

a 夏天 提交于 2019-12-04 13:16:32
I have a grid where each row has a select drop down box in with values. When an item is selected, how can I make the grid reload to reflect the change? The reason I want to do this is because the item selected from the drop down effects an amount in another column. Here is the code for my dropdown: function shippingModelSelect(container, options) { $('<input required data-text-field="modelName" data-value-field="modelId" data-bind="value:' + options.field + '"/>') .appendTo(container) .kendoDropDownList({ autoBind: false, dataSource: [ { "modelName": "Individual shipping cost", "modelId": 1 },

kendo listView with checkbox along with select all checkbox option

♀尐吖头ヾ 提交于 2019-12-04 12:57:37
I am new to kendo UI implementation and am looking for a way to create a listview with checkbox, the very first checkbox being All Option to select all items in listview if it is checked. I have created a template that allows me to add checkbox to the items, But i need to add a ALL checkbox on top of all the data. this is what i have worked in so far, Below (screenshot) is what i would like to achieve. Here is my template: <script type="text/x-kendo-tmpl" id="myTemplate"> <div class="item click" data="${ProductID}"> <input type="checkbox" class="click" /> <span class="checkbox">#:ProductName#<

KendoUI integration into Durandal JS

烈酒焚心 提交于 2019-12-04 12:49:20
I'm building a phonegap application and plan to use Telerik's Kendo UI framework to generate the UI. Telerik Kendo UI already has an MVVM implementation and I'd like to use that and not include Knockout JS. Is this something that is supported, or is Durandal JS deeply integrated with Knockout? Roger Gullhaug has written a blog post, detailing how Durandal can be used together with Kendo UI's data binding: Using Durandal and KendoUI together Also the official Durandal documentation contains a mention about Kendo: KendoUI 来源: https://stackoverflow.com/questions/15409941/kendoui-integration-into

Binding date value to ng-model in angular kendo date picker

匆匆过客 提交于 2019-12-04 11:32:15
问题 I have an api which return the date in this format "014-08-26T15:10:45.402Z" i am using angular kendo ui .The problem i am facing is the date is not getting bound to the kendo date picker.Could someone help me out . <input kendo-date-picker ng-model="emp.datestart" k-format="MM/dd/yyyy" /> 回答1: In order to have the Kendo DatePicker working with a string date value model you need: 1) Use k-ng-model instead of ng-model. 2) Tell the widget in which exact format the date will be parsed. <input

Kendo TabStrip: Getting the Selected Index on the Selected event (MVC 4)

无人久伴 提交于 2019-12-04 10:33:59
My TabStrip is as follows: @(Html.Kendo().TabStrip() .Name("tabApplications") .Items(items => { items.Add().Text("Online").Selected(true); items.Add().Text("Trading"); }) .Animation(false) .Events(e=>e.Select("tabstrip_select")) ) In Javascript I get theSelected Item: function tabstrip_select(e) { var x = e.item; } Question : How do I get the Selected Index (ie "1") from this function. I looked over the Item object but didn't see anything obvious. You can get the currently selected index with calling index() on the $(e.item) function tabstrip_select(e) { var x = e.item; var selectedIndex = $(e

Kendo dropdown width

こ雲淡風輕ζ 提交于 2019-12-04 10:26:42
问题 Hi can someone tell me how to set width for kendo dropdown? Here is my code sample and it is not working. Anything wrong in that? $("#div1").kendoDropDownList({ dataSource: items, dataTextField: "Name", dataValueField: "Id", Width : "250px" }); 回答1: The kendoDropDownList does not have a property width for it's configuration. See here: Kendo Docs What you can do, is styling the correct class. Since you hopefully do know where your dropdown lies, you can specify the selector so it doesn't apply