kendo-ui

KendoGrid - Adding & Removing the extra row is DUPLICATING the detailrows

拈花ヽ惹草 提交于 2020-01-07 04:27:08
问题 I wish to add one extra row into the detailRow to show a full description above the rows. But for some reason, when i click the expand or collapse indicator in the master row, it is generating the unwanted duplicate detail rows. Please suggest how to fix this issue. I am not sure, where i am getting wrong or missing something. Although, both functions are working fine in terms of adding & removing the extra row element. But not sure, why the detail rows are getting added again and again.

Trying to use a parameter obtained from Index() controller and passing it into KendoGrid to retrieved items associated with the parameter(an id)

最后都变了- 提交于 2020-01-07 03:14:13
问题 A bit of background. I'm working with MVC and I've appended an ID to my path so that when I pass the ID to my controller, the controller will look through a database and look for another ID that is in the same row as the ID I just passed in. I then redirect to my Index() controller with these two IDs now present in the query string and I return the view. My problem is that I want to that I want to link up the the second ID that I found in my Index to another controller that is associated with

Implement server-side paging with client-side Kendo UI Grid?

混江龙づ霸主 提交于 2020-01-07 02:48:10
问题 Can anyone tell me how can I implement server-side paging with client-side Kendo UI Grid? I use below method. if any one use this method please help. $(document).ready(function () { function loadGrid(){ $.ajax({ ..... data: JSON.stringify({ //skip: skip, //take: take, }), success: function (result) { var datsource = new kendo.data.DataSource({ data: result.d, schema: { model: { id: "TemplateID", fields: {.... } } }, serverPaging: true, pageSize: 10, }); $("#grdOtherBomRequest").kendoGrid({

Using Or condition while filtering kendo grid

╄→гoц情女王★ 提交于 2020-01-06 20:19:45
问题 I am using a kendo grid in my MVC application. Grid has two columns FirstName and LastName. Grid has a textbox where user can enter FirstName or LastName to search. I want to filter grid based on this criteria. Following is the code that i am currently using : <script> $(document).ready(function () { $("#FirstNameFilter").keyup(function () { var value = $("#FirstNameFilter").val(); grid = $("#grid").data("kendoGrid"); if (value) { grid.dataSource.filter({ field: "FirstName", operator:

how to populate a KendUI Window

萝らか妹 提交于 2020-01-06 19:41:40
问题 I am new to Kendo UI. I would like to be able to display a popup with the results from my controller. My example is very simple. I have this data on my page. Some text [Create] When I click on [Create], a call in made to my controller. The controller will create a PDF file. Next, I would like to be able to display the pdf in a KendoUI Window. I am getting hung up on how to pass info back to page so the KendoUi Window is aware of the PDF file name to display. Thanks in advance for your tips.

Event does not fire up in Kendo

China☆狼群 提交于 2020-01-06 17:10:13
问题 The mouse hover event does not fire up. I could not able to figure that out function createChart() { $("#chart") .kendoChart({ xAxis: {}, yAxis: {}, seriesDefaults: {type: "scatterLine" }, series: [{data: stats2}], }) } // the following part does not fire up var isHover = false; $("#chart").hover( function () { if (!isHover) { var chart = $("#chart").data().kendoChart; chart.options.series.data=stats2; isHover = true; } }, function () { if (isHover) { var chart = $("#chart").data().kendoChart

How can I add multiple tooltips on kendo ui grid.

北战南征 提交于 2020-01-06 14:47:46
问题 I want to have different tooltips in different columns on a kendo ui grid. I am examine the example http://dojo.telerik.com/@pfilipov/iGetO/2 but I can't find the way to do it. 回答1: Do you require Angular syntax as in example? - I don't speak Angular, but here is basic solution where I do not need to. Dojo example Also there is content function where you can catch and react according to attributes - in that case Title. So if you need calculate some equation (for example) you can create

Kendo UI javascript : remote bind form

无人久伴 提交于 2020-01-06 09:55:29
问题 I'm having trouble getting started with binding a Form to a remote Datasource in Kendo UI for javascript I have verified that the ajax call returns the correct JSONP payload, e.g: jQuery31006691693527470279_1519697653511([{"employee_id":1,"username":"Chai"}]) Below is the code: <script type="text/javascript"> $(document).ready(function() { var viewModel = kendo.observable({ employeeSource: new kendo.data.DataSource({ transport: { read: { url: baseUrl + "/temp1", dataType: "jsonp" },

ASP.NET MVC / TabStrip - Doesnt switch Tabs

一笑奈何 提交于 2020-01-06 08:13:30
问题 1) included the following in bundle.config /Content/kendo/kendo.common.min.css /Scripts/modernizr-2.5.3.js /Scripts/jquery-1.7.1.js /Scripts/kendo/kendo.all.min.js /Scripts/kendo/kendo.aspnetmvc.min.js /Content/kendo/kendo.common.min.css /Content/kendo/kendo.metro.min.css 2) web.config <namespaces> <add namespace="System.Web.Mvc" /> <add namespace="System.Web.Mvc.Ajax" /> <add namespace="System.Web.Mvc.Html" /> <add namespace="System.Web.Optimization"/> <add namespace="System.Web.Routing" />

Generating templates programmatically in Kendo for Angular grid

[亡魂溺海] 提交于 2020-01-06 04:51:07
问题 Given this columns array in a parent component: columns = [ { field: 'field1', title: 'Title 1', width: '100px' }, { field: 'field2', title: 'Title 2', width: '200px' }, { field: 'field3', title: 'Title 3' } ]; I can build a Kendo for Angular grid dynamically in a my-table component: @Component({ selector: 'my-table', template: ` <kendo-grid #grid="kendoGrid" [data]="data"> <kendo-grid-column *ngFor="let column of columns" field="{{column.field}}" title="{{column.title}}" width="{{column