kendo-ui

Kendo UI Grid with dynamic columns and random data showing JSON objects as [object Object]

寵の児 提交于 2019-12-14 02:27:05
问题 The data is random and I cant predict the columns. I read data from remote and display it on the grid. I get json objects as [object Object] in Kendo UI Grid, How can i visualize it or is there any way to show a detail view of a cell in a Kendo grid ? I think it would solve the issue if I can insert a treeview of JSON Object in those cells. 回答1: The problem is that your Address is a complex object, so you need to tell kendoGrid how to display it. For example, I have a complex object Connected

Triggering OnCancel event of kendo upload on click of button

随声附和 提交于 2019-12-14 02:26:35
问题 I want to Cancel the file uploading on click of cancel button. means I want to trigger the onCancel(e) event on click of my cancel button My code is, @(Html.Kendo().Upload() .Name("files") .Multiple(false) .Async(a => a .Save("UploadArtifactFile", "PP", new { TeacherEvalID = ViewBag.TeacherEvalID, ObservationID = ViewBag.ObservationID, Accountid = ViewBag.AccountID }) .AutoUpload(false) .RemoveField("") ) .Events(events => events .Success("onSuccess") .Select("onSelect") .Error("onUploadError

Error in Kendo Grid Export to excel “cannot read property 'length' of undefined” in jQuery.js file

亡梦爱人 提交于 2019-12-14 02:12:11
问题 I am trying to export kendo grid to excel, Then I am having error in console. Please help me if anyone knows about it.Thanks in Advance. angular.js:13920 TypeError: Cannot read property 'length' of undefined at Function.map (http://lm.stage.cargoclix.net/bower_components/jquery/dist/jquery.js:461:18) at init.toDataURL (http://lm.stage.cargoclix.net/bower_components/kendo-ui/js/kendo.all.min.js:30:19702) at init.<anonymous> (http://lm.stage.cargoclix.net/bower_components/kendo-ui/js/kendo.all

Kendo-UI and Angularjs Multiselect selections disappear

我的梦境 提交于 2019-12-14 01:28:34
问题 I'm using Angularjs and Kendo-UI. When I use the Kendo-ui multiselect and I have other elements like on the same view, the selections I have made in the multi-select list disappear when I type text into the . I added a simple plunker demo at the link below. To use it, just select one or more states from the multi-select States list FIRST before entering an text in the textboxes. After selecting the states from the list, then enter text into the text boxes and the selected States just

Hide an element conditionally by its value

不想你离开。 提交于 2019-12-13 23:35:23
问题 I have a kendo grid containing following columns. 1.Name 2.Age 3.Type{values:public,private} I need to hide a column in specific row. In my problem, i want to hide age cell if Type value is private. 回答1: using if else format columns.Template(@<text></text>) .ClientTemplate("#if (field == value) {#" + "<a></a>" + "#}else {#" +"<input name='chkSubscribed' class='subscribedClass'type='type': '' #/>" + "#} #").Width(130).Title("title"); 回答2: You can't hide the cell but you can hide the age

Populate KendoUi Treeview with RavenDB documents

时间秒杀一切 提交于 2019-12-13 22:14:36
问题 I am using MVC4 and C#. I have a KendoUI Treeview and I'd like to populate it with data from RavenDB. In the demo they use this: public JsonResult Employees(int? id) { var dataContext = new NorthwindDataContext(); var employees = from e in dataContext.Employees where (id.HasValue ? e.ReportsTo == id : e.ReportsTo == null) select new { id = e.EmployeeID, Name = e.FirstName + " " + e.LastName, hasChildren = e.Employees.Any() }; return Json(employees, JsonRequestBehavior.AllowGet); } Notice the

Microsoft JScript runtime error: 'data.EmployeeDetails.EmployeeId' is null or not an object`

时间秒杀一切 提交于 2019-12-13 21:23:52
问题 HI I am stuck in getting data that i need to display in kendo UI GRID , Initially I am able to see the button and textbox and grid as well but when i enter the value in textbox and then press the button i need to show that entered values in kendo UI GRID ... When I run this application in google chrome it was giving empty grid,after enters the value and then press the submit button but when I run this one in IE8 it was giving error like this at starting stage itself.... Unhandled exception at

kendo Grid grouping incompatibility with row template

左心房为你撑大大i 提交于 2019-12-13 19:09:02
问题 When I'm using other "groupable" row template doesn't work in the kendo grid But before there was no problem and now how to use the grouping together of row template I put the code I wrote in a review do jsfiddle : Click here to check with jsfiddle <script> $(document).ready(function () { var ds = new kendo.data.DataSource({ transport: { read: { url: '/api/clientssnapshot', dataType: 'json', type: 'get' } } }); $('.table').kendoGrid({ dataSource: ds, sortable: true, groupable: true,

Kendo Gantt (MVC) is parsing dates on US calendar (I'm in the UK!)

狂风中的少年 提交于 2019-12-13 18:44:45
问题 I'm in the UK and am using a Kendo MVC Gantt chart as follows: @(Html.Kendo().Gantt(Of IMS2_App.JobTasksVM, IMS2_App.Models.Dependency)().Name("gantt") _ .Columns(Sub(columns) columns.Bound("id").Title("id").Width(20) columns.Bound("title").Title("Task").Width(200).Editable(False) columns.Bound("start").Title("Start Date").Format("{0:dd MMM yyyy}").Width(90).Editable(True) columns.Bound("end").Title("End Date").Format("{0:dd MMM yyyy}").Width(90).Editable(True) End Sub) _ .Views(Sub(views)

Showing data by percentage on Pie Charts in MVC

為{幸葍}努か 提交于 2019-12-13 18:18:53
问题 In my MVC5 application I have table lets's say it's name is Student and every student belonging to a Team. I want to show students according to their teams by percentage. For this reason I also created a ViewModel in order to join Student entity with Team entity. So, how can I show the data I want on Kendo UI pie chart? Could you have a look at the code and correct the mistakes below? And could you give a View samples suitable to this approach? Thanks in advance. ViewModel: public class