kendo-ui

Is it possible have this code equivalent code in kendo external template

十年热恋 提交于 2019-12-12 06:45:44
问题 I have this dojo with its inline template var actionName = 'read'; $("#grid").kendoGrid({ columns: [ { field: "name" }, { field: "age" } ], dataSource: [ { name: "Jane Doe", age: 30, read: true, actionName: actionName } ], detailTemplate: "<div> #:" + actionName +"# </div>" }); and this dojo with its external template: <script id="detailTemplate" type="text/x-kendo-template"> #: actionName # </script> var actionName = 'read'; $("#grid").kendoGrid({ columns: [ { field: "name" }, { field: "age"

Kendo bar chart with texture pattern

瘦欲@ 提交于 2019-12-12 06:28:56
问题 I have a kendo bar chart as below. But instead of colors i need to show as some line or dots pattern. Can someone help me on this. I have the datasource for the chart. Then I am binding that data to datasource. How will i assign the patters? Could you please help me on this $("#NumActivitiesChart").kendoChart({ title: { text: "Number of Activities Report", font: "bold 20px Arial,Helvetica,sans-serif", color: "brown" }, //plotArea: { // background: "#EAEFFA" //}, dataSource:

How to bind Kendo stacked bar chart through Model

痞子三分冷 提交于 2019-12-12 06:17:41
问题 I am trying to bind a stacked kendo Bar chart Through MVC model ,but getting an error "cannot convert lambda expression to type 'double' because it is not a delegate type". @(Html.Kendo().Chart(Model) .Name("chart3") .Title(title => title .Text("Comments per day") .Align(ChartTextAlignment.Left) ) .Legend(legend => legend .Visible(false) ) .Series(series => { series.Column(new double[]{model => model.PerIdlingHours} ) .Labels(labels => labels.Background("transparent").Visible(true)); })

MVC Kendo - 'System.Web.Mvc.HtmlHelper<dynamic>' could be found

会有一股神秘感。 提交于 2019-12-12 06:14:23
问题 I'm getting the following error. I've also included my webconfig file. Does anyone know what i may need to do to fix this? Thanks in advance! Error: 'System.Web.Mvc.HtmlHelper' does not contain a definition for 'Kendo' and no extension method 'Kendo' accepting a first argument of type 'System.Web.Mvc.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) WEB CONFIG FILE: <?xml version="1.0" encoding="utf-8"?> <!-- For more information on how to configure your

How to use post(update) of data having child objects in them

↘锁芯ラ 提交于 2019-12-12 06:09:00
问题 My data looks something like this. "Name":"name16", "Description":"Sampledatatest", "Remarks":"testat759", "ApprovalStatus":"Waiting", "Curve": [ {"SLength":185,"StrokeVolume":200,ParentId: 0}, {"SLength":185,"StrokeVolume":200,ParentId: 0}, {"SLength":185,"StrokeVolume":200,ParentId: 0}, {"SLength":185,"StrokeVolume":200,ParentId: 0} ] And this is my update function function updatep(e) { var Data = { PId: e.model.PId != "" && e.model.PId > 0 ? e.model.PId : 0, Name: e.model.Name, Description

Kendo UI Grid and ng-style

点点圈 提交于 2019-12-12 05:58:55
问题 I have a Kendo UI Grid in angular which is reading from my datasource a series of properties. One of them contains a color string. I want to use said color string to set the background-color for a square-box in the grid. I'm using the following template for the box: template: "<img class='alarm-box-prediction variable' ng-style={'background-color': dataItem.type}'></img>" The relevant data from my dataSource is the following: dataSource: { dataSource: function(data) { // Map the stored

Assigning selected rows as other grid datasource

喜欢而已 提交于 2019-12-12 05:58:44
问题 I am working on setting up a scenario as following: 1) User is shown existing results on first grid 2) User can select multiple results and click an 'Edit' button which will extract the selected items from the first grid 3)Second grid will be populated with the rows the user has selected from the first grid and will allow them to make edits to the content 4)Pressing save will update the results and show the first grid with the rows updated So far using drips and drabs of various forum threads

How can I disable an item in a Kendo ListView?

情到浓时终转凉″ 提交于 2019-12-12 05:48:52
问题 I'm trying to disable an item in my Kendo listview control. I've tried calling $('#itemid').prop('disabled', true); but it had no effect (it's a div , not an input ). I don't want the user to be able to click on this item. I also tried getting the click event handlers and temporarily setting them aside, thus disabling the control. $('#itemid').data('events') ... is supposed to give me the events, but it returns nothing. How can I disable the item in the listview? 回答1: This isn't really

Bind a database table with Kendo Grid (MVC) using stored procedure, with large amounts of data with proper server side paging, sorting, filtering

此生再无相见时 提交于 2019-12-12 05:47:33
问题 We have a table with a large amount of data (in the millions of rows). We are using a stored procedure to fetch the records and binding that data with kendo grid using mvc approach. But we want to fetch only desired rows from table instead of getting the whole set of data in one go and then make filtering, sorting, paging options on that. Would it be possible to fetch only one page of rows at a time? Please help and suggest some approach. 回答1: First, you should have some paging logic inside

kendo ui: how to remove a dataItem of a dataSource bound to some comboBox, inside combobox dataBound event

核能气质少年 提交于 2019-12-12 05:37:00
问题 I have a grid, inside of some column of which I have created a combobox editing UI, using columns.editor function. My goal is every time a user selects some value from the combobox -while populating a newly created grid record-, this value to be removed from the list options of a next record's combobox. One of the things i've tried is shown below: function equipmentDropDownEditor(container, options) { var equipmentComboBox = $('<input id="equipmentDropDownEditor" required data-text-field=