kendo-grid

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

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

Databinding is not happening after search kendo grid

人盡茶涼 提交于 2019-12-12 04:58:11
问题 Hi I've a Kendo grid with some data. When I try to call rebind it is not populating data even though I can able to fetch it from my db. Here are the clear steps: Binding data by calling my function init() In my Init() I've datasource with read like this read: "/Emps/ShowAllEmps" First time it is loading data and I can able to see in the grid Now I've a text box in my page along with search button. I've entered some text and calling the same datasource like "/Emps/ShowAllEmps" with additional

hide and show columns- kendo grid

大兔子大兔子 提交于 2019-12-12 04:56:57
问题 How to hide and show columns of kendo grid without using jquery? here is the js fiddle link for the example: http://jsfiddle.net/tmLmk/7/ HTML code: <div ng-controller="GridController"> <div kendo-grid k-options="options" k-data-source="sData"></div> </div> JS code: angular.module('angular-kendo-example', ['kendo.directives']); function GridController($scope) { $scope.options = { sortable: true, pageable: true, columns: [{ field: "column1", title: "column 1", width: "40px" },{ field: "column2

Telerik Kendo MVC Grid - How do I set onload/initial filter equals True with checkbox columns?

爷,独闯天下 提交于 2019-12-12 04:19:06
问题 I've been charged with changing my company's current webforms site pages to MVC. We use the Telerik tools package and I am looking for a way to set an initial filter on my grid so that when the page is loaded the grid defaults to showing only records that are checked (true). I have found several questions similar to this but so far none of the answers I have found in those instances dealt with checkboxes. The code below is my "Active?" = True/False column in the MVC grid. I'm checking the

Knockout-Kendo.js Grid UI:datepicker filter

老子叫甜甜 提交于 2019-12-12 04:15:01
问题 I am using the Knockout-Kendo.js integration library I am trying to get the datepicker filter working. However, whenever I add filterable: {ui: "datetimepicker" } to my configuration nothing is shown on the page and no script errors. My kendoGrid configuration looks like (here with filterable attribute on SubmittedDate) <div data-bind="kendoGrid: { data: projectSubmissions, dataSource: { schema: { model: { fields: { SubmissionId: { type: 'number' } , FormName: { type: 'string' } , IdVersion:

AngularJs with kendo grid inline mode cancel deletes the existing records?

微笑、不失礼 提交于 2019-12-12 04:11:06
问题 I have grid and i am trying to add record it's adding and updating also. but while click edit and not changing any values and clicking cancel it's deleting existing row value from model. Please help me to resolve this issue. I added dojo link here . http://dojo.telerik.com/enErE 回答1: Your id in schema should be an actual field. "schema": { "model": { "id": "cuobjid", } Also, if id is null i.e cuobjid is null then it will remove the row. Check updated dojo 来源: https://stackoverflow.com

Kendo grid popup with Yes/No combo for boolean

限于喜欢 提交于 2019-12-12 03:46:06
问题 This is driving me nuts. I am trying to do something that should be a no-brainer, but having loads of issues. I have two boolean fields that I want to bind to a combo box with Yes and No in it. I want to use the Kendo UI Combobox and I am doing all this in a popup template for a Kendo UI grid. In the code snippet bellow I have two selects (at the end of the template), one with the data-role="dropdownlist" set, the other without. The first select, ReceiveEmailMontlyFlyer, will select the

Kendo UI Dropdownlist

此生再无相见时 提交于 2019-12-12 03:26:40
问题 Responseenter image description hereI have a kendo grid displaying ID,NID,SID(Student table) and some other fields.Now when i want to add new Student the NID field must me a dropdownlist populating the values from the database. How can we do this. What should be in the data-source . I wrote a query to get the NID. but how would i use it. Or is this wrong Thanks <div> <table> <tr> <td> <div> <label for="ID">ID</label> </div> <div data-container-for="data.ID"> <input id="id" data-bind="value: