kendo-ui

Kendo Treeview with remote datasource issue

只谈情不闲聊 提交于 2019-12-11 10:21:51
问题 I have the following code for my treeview. Everything is ok. I can use my tree: expand, collapse, drag items. But when I call 'select' event for any node I get an error: Uncaught TypeError: Cannot call method 'dataItem' of undefined" on the line var data = $("#treeview").data("kendoTreeView").dataItem(e.node); Any ideas how to solve that? How can I access data("kendoTreeView") of my tree? I've tried to get it on endRequest event of datasource but it doesn't work. var jsonUrl = "/admin

passing controller json result to view [closed]

半世苍凉 提交于 2019-12-11 10:11:50
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . I need to simply passed the json data which is created in controller to view my codes are as follow: My Model: Machines.cs In my model I get the dates as

Binding event to other UI component's function, in Kendo MVVM

我怕爱的太早我们不能终老 提交于 2019-12-11 10:08:52
问题 In Kendo UI, what is the best practice to reference another UI element's (widget) functionality; the MVVM way? For example, let's say I have both a grid and a button. I want the button to trigger the AddRow function of the grid. For this, let's say I have the following html: <div id="grid" data-role="grid" /> <div id="button" data-bind="click: foo" /> My viewmodel would look something like: var viewmodel = kendo.observable({ foo: function() { // how to call the grid's functions here ideally,

How to set the tree view node color for Kendo UI TreeView?

大憨熊 提交于 2019-12-11 10:08:29
问题 I want to set the tree view color based on the value defined in the datasource field, From this link, I think that what I am trying to do is possible, but I am not using MVVM, so in my case what I am missing below? any idea?? http://www.telerik.com/forums/mvvm---treeview-only-updates-on-datatextfield-change <div id="treeview"></div> $("#treeview").kendoTreeView({ template: "#= item.text # color:#: item.color #", dataSource: [ { text: "green", color: "green", items: [ { text: "yellow", color:

Kendo grid change event fires only once per row selection

﹥>﹥吖頭↗ 提交于 2019-12-11 09:59:25
问题 In a MVC4 project, I've got a kendo grid that fires an event when a row is selected. <div id="datagrid"> @(Html.Kendo().Grid<SustIMS.Models.StretchModel>() .Name("datagrid_Stretches") .Columns(columns => { columns.Bound(s => s.StretchCode).Title(ViewBag.lblCode).Width(80); columns.Bound(s => s.StretchMediumDescription).Title(ViewBag.lblDescription); ... }) .Events(e => e.Change("onChange")) <--------- here's the event .DataSource(dataSource => dataSource .Ajax() .PageSize(15) .Read(read =>

Which DataType should be used for Editor & File and image browser

我只是一个虾纸丫 提交于 2019-12-11 09:54:15
问题 Which datatype should be used in MSSQL database with an MVC application for the following fields as on the following components? http://demos.telerik.com/aspnet-mvc/editor/index Editor & File Image browser 回答1: In my application I sotre image as base64string hence, nvarchar(max) is the data type i used. The advangage of this is that you can pass based64String image in JSON object from or to website. To convert image to based64string public static string ToBased64String(this Image image,

How to pass MongoDb Json value to KendoUI grid using webservice method

只谈情不闲聊 提交于 2019-12-11 09:50:16
问题 I'm new to KendoUI, trying to populate a KendoUI grid with JSON data which is fetched from mongoDB as BsonDocument lsit and returned as JSON string, var ds = new kendo.data.DataSource({ transport: { read: { url: "WebService.asmx/GetJson", dataType: "json", data: { q: "data" } } }, schema: { data: "statuses" } }); $("#grid").kendoGrid({ dataSource: ds }); I tried this one, grid is not binding to me, was I'm doing wrong, how to bind my data to grid, pls help me waiting for kind reply. note:

Is this a bug? Stacking time series ignores the date value

爱⌒轻易说出口 提交于 2019-12-11 09:47:42
问题 I'm attempting to display two series on a single line chart in KendoUI. The dates in the series don't match (that is, series two starts after series one, and finishes before series one). KendoUI however renders both series starting from the beginning of the chart. I've created a simple jsfiddle to demonstrate the issue, summarised here: HTML: <div id="chart" /> CSS: #chart { width: 400px; height: 280px; } JS: $(function () { var dataSource = new kendo.data.DataSource({ data: [ { series:

is it possible to pass static HTML markup content to kendo angular modal window via k-content?

房东的猫 提交于 2019-12-11 09:44:20
问题 If I have this in my controller: $scope.windowContent = not sure what to put here; and my window's markup is this: <div kendo-window="win2" k-title="'AJAX content'" k-width="600" k-height="200" k-visible="false" k-content= ????????????? k-on-open="win2visible = true" k-on-close="win2visible = false"></div> </div> Is it possible to specify an angular expression {{windowContent}} as the value for k-content ? I am trying to pass HTML markup here to the window, rather than fetch it from a URL.

How to update a Kendo Grid dataSource to a remote url, but without triggering an ajax call?

徘徊边缘 提交于 2019-12-11 09:37:58
问题 Take a look at my fiddle here Unfortunately Kendo Grid doesn't seem to provide a native solution to good SEO (see here). But I thought I would give it a try, and see if there is anything I can do. This is what I have so far: To achieve a proper progressive enhancement approach with Kendo Grid, I have 3 parts: Pre-existing HTML table for SEO purposes ( see html section of fiddle ) The same data from the HTML table, but as JSON ( see top of js section of fiddle ). This is so Kendo will show the