kendo-datasource

Binding Kendo Data Source with Async $.ajax calling from C# MVC Controller Action

梦想与她 提交于 2019-12-12 02:47:28
问题 This is my action in controller. Which return a List> converting into DataSourceResult.and also Serializing into Json. [HttpPost] public ActionResult GetMissingShiftData([DataSourceRequest]DataSourceRequest request) { DataTable dtResponse = new DataTable(); var dynamicList = new List<dynamic>(); var myMainList = new List<List<dynamic>>(); List<DataSourceResult> viewResultList = new List<DataSourceResult>(); string RigNumber = string.IsNullOrWhiteSpace( resultData.Filter.SelectedRig.RigNumber)

How to solve incorrect grouped bar chart in Chrome?

我的未来我决定 提交于 2019-12-11 14:36:22
问题 I'm creating a grouped bar chart like this: $("#chart").kendoChart({ dataSource: { data: rawdata, group: { field: "Serie" }, }, legend: { position: "top" }, plotArea: { background: "white", }, seriesDefaults: { type: "column", style: "smooth", stack: true }, series: [ { field: 'Valor1', labels: { visible: true, background: '', format: 'p1', color: 'white', position: 'center' }, } ], valueAxis: { max: 1, labels: { format: "p2" }, line: { visible: false }, axisCrossingValue: -10, },

Kendo: bind remote datesource to form

倾然丶 夕夏残阳落幕 提交于 2019-12-11 01:17:11
问题 I am trying to understand how I can bind data from a remote datasource to a form, similar to this question, my ajax is returning the correct data. I have tried to implement the suggested solution but it doesn't appear to work and there are no errors either. my ajax request: $.ajax({ url: "Read?messageID=" + "123456", method: "get", type: "application/json", success: function (result) { console.log(result); }, error: function (result) { console.log(result); } }) I do not know how to extract

Using templates&editors in grid column with Angular Kendo UI

霸气de小男生 提交于 2019-12-10 11:45:44
问题 I'm trying to use Angular Kendo UI in my app. Some views include grid. <div kendo-grid k-sortable ="true" k-pageable ="true" k-filterable ="true" k-resizable ="true" k-editable = "'incell'" k-selectable = "true" k-options = "accountSettingsDS" k-columns = '[ { field: "Companies", title: "Companies", editor : "<input kendo-drop-down-list k-data-text-field=\"'name'\" k-data-value-field=\"'name'\" k-data-source=\"CompaniesList\" ng-model=\"dataItem.Companies\"/>"}, { field: "Currency", title:

Kendo UI Angular JS and AutoComplete with a service

为君一笑 提交于 2019-12-07 01:53:14
问题 I'm making an Angular App and I'm starting to use some of the Kendo UI controls. I'm having some issues wiring up the AutoComplete control. I would like to use a factory that will return the list of "auto complete" values from my database. I have iincluded the auto complete control and I'm trying to use the k-options attribute: <input kendo-auto-complete ng-model="myFruit" k-options="FruitAutoComplete" /> In my controller the following hard coded list of fruits work: $scope.FruitAutoComplete

is it possible to copy a grid datasource to a new datasource, a new datasource that loads all data?

我的梦境 提交于 2019-12-06 14:29:28
is it possible to copy a grid datasource to a new datasource, a new datasource that loads all data?? for example i have a kendo grid which has a page size of 10, how would i copy it into a new datasource which will load all the data and ignore the paging. T.I.A Some aspects might depend on how did you define the DataSource of the first (pageable) datasource. But basically you need to copy the original data source, then change the value for pageSize and serverPaging and finally assign it to the second grid using setDataSource . Example: // First DataSource definition var ds1 = { transport: {

KendoUI chart - how do I show animation while loading data?

你离开我真会死。 提交于 2019-12-05 16:23:34
问题 I have a KendoUI chart generated with JavaScript. Is there a way to clear the plotArea with a command? For the purpose of showing a "Loading..." image while waiting for a DataSource to read remote data. Thanks 回答1: Displaying and hiding the loading animation is: // Display progress kendo.ui.progress($("#loading"), true); // Hide progress kendo.ui.progress($("#loading"), false); Then you should use requestStart and requestEnd events in the DataSource for knowing when to show or hide the

KendoUI chart - how do I show animation while loading data?

試著忘記壹切 提交于 2019-12-04 01:32:18
I have a KendoUI chart generated with JavaScript. Is there a way to clear the plotArea with a command? For the purpose of showing a "Loading..." image while waiting for a DataSource to read remote data. Thanks Displaying and hiding the loading animation is: // Display progress kendo.ui.progress($("#loading"), true); // Hide progress kendo.ui.progress($("#loading"), false); Then you should use requestStart and requestEnd events in the DataSource for knowing when to show or hide the progress animation. The DataSource of the Chart would be: dataSource : { transport : { read: { url:... } }, sort :