FAQ Database Discussion Community


Default Kendo Grid filtering doesn't work in one of projects, works in another

asp.net-mvc,razor,kendo-grid,kendo-asp.net-mvc
I have a hard time figuring out why the default filtering doesn't work in one of my projects. The grid code looks perfectly similar, controller methods too. In one of the projects it works flawlessly, in other one the "filter" button appears but is not clickable. Any clues what might...

Kendo UI MVC Grid show aggregate data in footer based on column values

kendo-ui,kendo-grid,kendo-asp.net-mvc
I have a grid with two columns of interest: Dollar Amount, and Status. The status can be either Accepted, Pending, or Rejected for that row's dollar amount I would like to implement the the aggregate feature to display the total dollars Pending, and the total dollars Accepted. This is my...

Change Kendo Grid column's bind with JS

javascript,kendo-ui,kendo-grid
I have some radio buttons on my page and I want to bind one of my Kendo Grid's columns according to the user's selection, and then refresh the grid. This is my javascript code: function change(c) { var grid = $("#grid").data('kendoGrid'); switch (c) { case 2: break; case 3: break;...

Record doesn't show in grid of Kendo UI MVC

model-view-controller,kendo-ui,kendo-grid
I use this code for grid Kendo UI, But it doesn't show data in the grid. I trace code, it's right, only doesn't show record in grid. I don't know how to solve this problem. public JsonResult GridData() { var products = new List<Product>(); for (var i = 1; i...

How use template in kendo grid with html.actionlink()?

model-view-controller,kendo-grid
I am use template in kendo grid but see error SyntaxError: expected expression, got '&' Template:<a href="/Home/ClientProfile_GeneralData?Length=11&q columns: [ { field: "Id", title: "id" }, { field: "Name", title: "Product Name", Template:@Html.ActionLink("#= Name #", "ClientProfile_GeneralData", "CrmCProfile", null ).ToHtmlString(); { title: "Action", template: "<a href='http://www.sample.com/'>Edit</a>" }, ...

How can I set default value for a foreign key colum in Kendo Grid?

kendo-ui,kendo-grid,kendo-asp.net-mvc
In the Kendo Grid there is a foreign key column, and I retrieve the select list from ViewData. Grid's edit mode is InLine. When I want to add a new record, the first item is selected. If I don't change it and don't select anything else, column's value will be...

How to get data out of ember objects

javascript,ember.js,kendo-grid
I'm fairly new to ember and I'd like to know whats the fastest way to extract the data out of ember objects. I've loaded my model with a very large amount of records using this.store.find('modelName);` in my route. I created a component on my view using {{kendo-ui.kendo-table descriptor=tableDescriptor data=model}}. My...

Radio Button doesn't reflect Model's value

kendo-ui,kendo-grid,kendo-asp.net-mvc
I have a kendo Grid for a class, and for that class I've built an editor template to produce a radio button for one of the fields. This radio button doesn't reflect propertie's value and is always false, although I've checked the value, by printing it on the form, and...

Implementing KendoUI grid search with dataSource filtering

javascript,html,kendo-ui,kendo-grid
I'm not sure if i'm doing this correctly, but I want to filter ('search') kendo ui grid based on one input's value. However, I want to search two fields of the grid, based on only one input. $("#grid").data("kendoGrid").dataSource.filter({ logic: 'or', filters: [ { field: 'lastName', operator: 'startswith' }, { logic:...

How to conditionally provide a style for a grid cell?

angularjs,kendo-ui,kendo-grid
I'm using the Kendo UI grid in my AngularJS application and I would wish to apply a certain background color conditionally. Below is my column definition : columns: [ { field: "TradeAmount", title: "Trade Amount", width: "120px", filterable: { cell: { showOperators: false } } }, ] So the above...

How to refresh the Kendo Grid automaically after doing update

jquery,kendo-grid
I am using the kendo Grid with inline editing ,after editing the field by clicking the update button the field in the grid is not triggering to non editable mode it is still editable i.e it is not refreshing the Grid, after manually refreshing the page am getting the updated...

Kendo MVC Grid date time object format when using in built functions

asp.net-mvc,kendo-grid,kendo-asp.net-mvc
I have question regarding the Create & Update functions handling datetime objects. My environment's set up to use the dd/mm/yyyy format for datetime, but when any of the Kendo MVC Grid's in built functions are called, the dates are sent over in the mm/dd/yyyy format which causes my model to...

How to make Kendo Datasource request from server side API call using Kendo MVVM and c#?

c#,asp.net,mvvm,kendo-grid,kendo-asp.net-mvc
I am using HTML page as a front end and i have to transfer a row of json data to database, how should i transfer a row full of values as a parameters to server side function or request datasource from server side to populate entities? Here is my html...

Kendo DropDownlist template selected value without using index

php,jquery,kendo-ui,kendo-grid
I have a kendo DropDownList template in which I want to select a specific record by id without using index. What I want is to select a record with CustomerID following is my code $(document).ready(function() { $("#shopSupplier").kendoDropDownList({ change:shopSupplierSelect, dataTextField: "ContactName", dataValueField: "CustomerID", valueTemplate: 'template', template: 'template', dataSource: { transport: {...

Kendo UI Datasource Auto Increment ID

javascript,jquery,kendo-ui,telerik,kendo-grid
Is there a way within the datasource that you can specify an Auto ID field within Kendo UI? I.e. so when we are inserting rows programmatically the id is auto generated. The data is not coming from a remote source. The data is initially empty and rows created by users...

How to reuse and parameter a Kendo UI grid EditorTemplate (using ASP MVC)?

asp.net-mvc,kendo-ui,kendo-grid,kendo-asp.net-mvc
I've created a DropDownList EditorTemplate for grid inline editing successfully. Now I would like to reuse this template in multiple columns (same grid), and/or in different views with different grids. What I figured out so far is if I omit the 'Name' for the dropdownlist in the template then the...

Modify JSON and display in Kendo UI Grid

javascript,json,kendo-grid
Given this JSON: { "Header": { "NewNetworkServiceProvider": "NewNetworkServiceProvidera9ae97fe-e59a-4678-91ea-5a03c7d0f5cc", "PurchaseOrderNumber": "PurchaseOrderNumberdf932a47-1476-4a78-a9d0-de538ed8306b", "ConfirmedVersionString": "ConfirmedVersionString12e9d37c-f8dd-4251-bc55-7c83732b5629" } } } I would like to turn it into: [ { "label": "NewNetworkerviceProvider", "value": "NewNetworkServiceProvider87cc6600-49c5-46fa-9fe7-d6f614645edb"}, { "label": "PurchaseOrderNumber", "value":...

What's this error - ReferenceError: count is not defined Kendo Grid

kendo-grid
I am using Kendo UI Grid, but debug console showing error jQuery. I'm so tired I do not know what the problem is! Please look at this pic for error: screenshot this mycode dont whtas error.iam debug code but dont find whats error <script type="text/javascript"> $(function () { var productsDataSource...

Accessing clientside data in a Kendo Grid Detail Template

kendo-grid,kendo-asp.net-mvc
Given this UI for MVC example, how do I reference items in the datasource for the detail template in a clientside template? For example, the Detail Template in the example looks like this.... <script id="template" type="text/kendo-tmpl"> @(Html.Kendo().TabStrip() .Name("tabStrip_#=EmployeeID#") .SelectedIndex(0) .Animation(animation => animation.Open(open => open.Fade(FadeDirection.In))) .Items(items => { items.Add().Text("Orders").Content(@<text> @(Html.Kendo().Grid<Kendo.Mvc.Examples.Models.OrderViewModel>()...

Format Date type using a function in Kendo Grid

kendo-ui,kendo-grid,kendo-asp.net-mvc
I have a function for date conversion, that accepts a datetime argument and returns string. How can I use this function to format Date columns in a Kendo Grid? I've tried the following codes, and none of them worked columns.Bound(x => x.ModifyDate).ClientTemplate(@Utility.GetPersianDate((DateTime)"#: ModifyDate #")); columns.Bound(x => x.ModifyDate).Template(@<text>@Utility.GetPersianDate((DateTime)@item.ModifyDate)</text>); columns.Bound(x => x.ModifyDate).Format(@Utility.GetPersianDate(Convert.ToDateTime("#:...

Values cannot pass from kendo grid to Entity class?

javascript,c#,asp.net,kendo-grid,kendo-mvvm
Here i my c sharp code of controller api class DefComapny whose value are always null while posting a data from kendo grid thats why not entering any thing to database? [HttpPost] public void SaveDefCompny() { var result = new List<DefCompany>(); using (var data = new RPDBEntities()) { DefCompanyDTO productViewModel...

kendo ui grid prevent posting data on client side validation error

post,kendo-ui,kendo-grid,preventdefault
I have done some clientside validation. parameterMap: function(options, operation) { if (operation !== "read") { var valid = customValidation(options); console.log(valid); if (valid) { return JSON.stringify({ discountPromotionViewModel: options }); } } }, And if the customValidation method returns false i don't want the grid to post the data. Now it posts...

How do I Change window size on kendo grid editor template?

kendo-ui,kendo-grid
I have a editor template for my kendo grid defined as <script id="my-editor-template" type="text/x-kendo-template"> <div class="k-edit-label"> <label for="ContactName">Contact</label> </div> <div data-container-for="ContactName" class="k-edit-field"> <input type="text" class="k-input k-textbox" name="ContactName" data-bind="value:ContactName"> </div> <!-- more fields, etc --> </script> In my grid definition, I definte editable like this: editable = { mode: 'popup', template:...

CRUD operations in a grid inside a parent grid detail template

asp.net-mvc,kendo-ui,kendo-grid,kendo-asp.net-mvc
Here's a sample code from the Kendo Grid Detail Template demo on the Telerik website (I've simplified the detail template by removing the tab-strip): @(Html.Kendo().Grid<Kendo.Mvc.Examples.Models.EmployeeViewModel>() .Name("grid") .Columns(columns => { columns.Bound(e => e.FirstName).Width(120); columns.Bound(e => e.LastName).Width(120); columns.Bound(e => e.Country).Width(120); columns.Bound(e => e.City).Width(120); columns.Bound(e => e.Title); }) .Sortable() .Pageable() .Scrollable()...

Set default attribute for all Kendo UI Grids

javascript,kendo-ui,kendo-grid
I have a Web Site containing multiple Kendo UI Grids. I have now been asked to remove the scrollbar from each of these grids. I know there's a config attribute scrollable that I could change to false in order to achieve this. However, I would like to avoid adding this...

Kendo Sortable integrated with a grouped Grid

asp.net-mvc,kendo-ui,kendo-grid,kendo-asp.net-mvc,kendo-sortable
Here's my View, in which I have a Sortable that's integrated with a Grid. This works fine, but the problem is that the Grid is grouped. And, I want each group to have its own Sortable functionality, meaning that the user should not be able to drag and drop rows...

Kendo UI call custom service for delete

kendo-ui,kendo-grid
How can I call custom service for deleting a row in Kendo UI grid.This custon service should have a confirmation dialog option that can be customized. Any thoughts on this is highly appreciative

Getting Kendo Grid's ID Field WithJavascript

kendo-ui,kendo-grid
I have a function that I'm going to use with several different Grids. In this function I want to set Grid's Id field which varies in different Grids. How can I get each grid's ID? function incId(e) { var model = e.model; var grid = e.sender; //removed model.set(!IDFIELD!, ++Id); }...

Kendo grid - adding column from nested dictionary

jquery,asp.net,asp.net-mvc,kendo-ui,kendo-grid
[Serializable] public class ContactDto { public int Id { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public string CompanyName { get; set; } public Dictionary<string, string> CustomFields { get; set; } } I have the contactdto class above with...

Kendo MVC batch editing change row color or focus

kendo-ui,kendo-grid,kendo-asp.net-mvc
I am a new babie for Kendo UI for MVC, I am trying to customise row color when doing batch editing for a grid, I looked in the internet but couldn't find any info. After editing a cell for batch editing grid by default Kendo add a small red spot...

array from javascript to controller java in kendo ui

kendo-ui,kendo-grid
I have a grid in kendo ui with batch editing and I need pass a array to my controller when user clicks update. I have the follow code: index.jsp: parameterMap: function(data, type) { if (type != "read") { data = data.models; } return data; } Controller.java: @Post @WithoutRoot public void...

How do I reference a specific cell in kendo grid with javascript?

javascript,kendo-ui,kendo-grid,kendo-asp.net-mvc
Right now I have a kendo grid with 2 rows and 6 columns. I need some logic to highlight a specific cell but I don't know how to reference a cell. I used this example but I don't know what to pass in as the id. myHub.client.highlightRow = function (id)...

Add a hyperlink to grid column

c#,asp.net-mvc,kendo-ui,kendo-grid
I'd like to have a link on the FileName column, so users can click and open a PDF file (no download, only open to view). This is what I have tried, but I don't know how to pass the file name to the server function. columns.Bound(p => p.FileName) .ClientTemplate( "<a...

Getting Kendo Grid from its DataSource

kendo-ui,kendo-grid
I'm writing a generic error handler for all of the Kendo Grids. I need to get that source Grid to prevent its default behavior in saving data. In the handler, you can access the source's DataSouce by args.sender. How can I access the Kendo Grid from that DataSouce? The only...

Kendo UI Grid one column does not display data

javascript,jquery,kendo-ui,kendo-grid
I have a Kendo UI grid that works great in development. When I deploy it to production, the data in just one of the columns (Salesperson) does not appear. I get no error at all. When I view source, the td is just empty. I've used Stackoverflow for years, never...

Laravel 5 having to send token with all requests in KendoUI Grid

php,laravel,kendo-ui,kendo-grid,laravel-5
I'm having to send the _token with every grid operation (except for read) in my kendo grid, otherwise I get a token mismatch error: ... transport: { read: { url: '/core/income-grid/read', dataType: 'json', type: 'get' }, update: { url: '/core/income-grid/update', dataType: 'json', type: 'post', data: function(data){ data._token = $('#incomeGrid').data('csrf'); return...

How to set Kendo UI grid column widths programmatically

javascript,kendo-ui,kendo-grid
I would like to set Kendo UI grid column widths programmatically. I am using the following code: function setColumnWidths(grid, options) { for (var i = 0; i < options.columns.length; i++) { grid.columns[i].width = options.columns[i].width; } } When debugging in chrome after the statements executed, grid.columns[i].width seems to be appropriately set...

How to get all the values of particular column of kendo grid?

javascript,kendo-ui,kendo-grid,kendo-ui-grid
i have kendo grid with 4 columns in it [mac,level,timestamp,message]. i need to store all the values under timestamp column in an array.I tried but couldn't find any way to traverse in a particular column. Any idea how to do this using java script?

How to use Kendo-grid into Angular-ngRepeat

javascript,angularjs,kendo-grid
How to produce kendo-grid with different data for each iteration of ng-repeat ? HTML code: <div ng-repeat="PricesPerGroup in AllGroups"> <kendo-grid options="GridOptions"></kendo-grid> </div> JavaScript code: $scope.GridOptions = { dataSource: { data: { (data is current 'PricesPerGroup' - Should bring it from ng-repeat) } } } ...

Add multiple items to a MVC Kendo grid without closing the popup

razor,model-view-controller,kendo-ui,kendo-grid
I'm using MVC Kendo grid to display a list of items. I can add items one by one fine using the Kendo default popup. Now I would like to be able to add a lot of items in a short time. My idea is to add the first item and...

How to send Javascript variable value to Kendo UI Grid?

javascript,asp.net-mvc,kendo-ui,kendo-grid
I am using Kendo UI and exporting grid data to excel, I know the process and it works fine for me. Now I want the excel file name to be a date like "12-12-2014.xlsx" although I can get the date value from drop down using Javascript , but I can't...

KendoUI Grid - Complex JSON with inconsistent keys

javascript,json,kendo-ui,kendo-grid
I know this is probably been asked before, but having tried to find an answer - I am guessing either I am not comprehending some of the answers right, or I am looking at the problem all wrong. I am using a complex SLC loopback query - and the api...

Kendo-grid AngularJs: put DataSource in HTML tag

angularjs,kendo-ui,kendo-grid
There is a way to put the DataSource as html tag? for example: <kendo-grid dataSource.data="SomeDataFrom$Scope" options="GridOptions"></kendo-grid> My problem: I'm in the loop of ng-repeat and for each iteration I want to produce kendo grid with different data. This is my code: <div ng-repeat="PricesPerGroup in AllGroups"> <kendo-grid options="GridOptions" ??="PricesPerGroup"></kendo-grid> </div> ...

Trying to use friendly name on Kendo Grid pop up editiing

kendo-ui,telerik,kendo-grid
I have a Kendo Grid that uses pop up editing due to the large amount of fields in my model. However the model does not use friendly. When I bind a column, I can simply use .Title("Some Title") to make the column have a friendly name. When I pop up...

Kendo Grid not binding to JSON result from ASMX Web Service

asp.net,json,kendo-grid,asmx
I have a problem binding Kendo GRID to ASP.NET asmx web service. Following is HTML Code <!DOCTYPE html> <html> <head> <title></title> <link rel="stylesheet" href="styles/kendo.common.min.css" /> <link rel="stylesheet" href="styles/kendo.default.min.css" /> <link rel="stylesheet" href="styles/kendo.dataviz.min.css" /> <link rel="stylesheet" href="styles/kendo.dataviz.default.min.css" /> <link href="styles/kendo.common-bootstrap.min.css" rel="stylesheet" /> <link...

how to change background color of kendo grids row using the row index

javascript,kendo-ui,kendo-grid
i need to change the color of kendo grids row by using it's index no. i tried using this but nothing happened. var gview = $('#SearchResult').data().kendoGrid;//searchresult is grid's id var dataRows = gview.items(); var rowIndex = dataRows.index(gview.select()); gview.tbody.find("tr:eq("+rowIndex+")").css("background-color", "green"); It's not throwing any error in debugger but not giving any...

KendoUI Grid: Array as a field

kendo-ui,kendo-grid,kendo-datasource
I have a data source, which gets built from a JSON data string, containing a field called Fruit: [{ ... /other entries fruit: [{ name: 1 }, { name: 2 }, { name: 3 }] }] I'm using this field in a KGrid, and would like to do a comma...

How do I attach function to kendo grid after it initialized?

javascript,jquery,kendo-ui,kendo-grid,kendo-datasource
I have a Kendo Grid and I have JavaScript function “getFilters”. The “getFilters” function is scoped function defined in document ready. Currently the grid is calling “getFilters” like below. But this doesn’t work because “getFilters” gets initialized after the grid initialization. So im getting error 0x800a1391 - JavaScript runtime error:...

Model Binding fails with Kendo Grid

asp.net-mvc,kendo-grid,kendo-asp.net-mvc
I can't use edit and create command of a Kendo Grid, because binding always fails and controller always receives a null object, even though DataSourceRequest is fine. I used a @html.EditorForModel() and it worked fine and controller received the data. So MVC Model binding and my class aren't the problem....

How to programically collapse or expand Kendo Grid Group by values in row

jquery,asp.net-mvc,kendo-ui,kendo-grid
I have a requirement to default a grouped grid to collapsed state UNLESS it contains a row with a certain value (Status == "Closed"). I got this far but fell down because the dataView only contains an array of rows of the grouped field not the rows as I've seen...

how to find class of a span used in of a kendo grid

javascript,jquery,kendo-ui,kendo-grid
I have kendo grid with large no of rows.In some of the rows few keywords are highlighted, ex: row: shubham, gupta, is a student the word student has been highlighted by adding a css class(highlight) to it. On inspection from chrome it looks like this : <tr data-uid="35495e0b-7e1b-45e3-8058-562c97d2b24d" role="row"> <td...

Kendo Grid Date is null for 13/06/2015 all dates after 12

asp.net-mvc,razor,kendo-grid,kendo-asp.net-mvc
My grid: @(Html.Kendo().Grid<IBATechnologies.IBA.Web.Models.AssetTransactionDetailViewMod el>() .Name("transactionGrid") .Pageable() //.Editable(editable=>editable.Mode(GridEditMode.InLine)) .Columns(colums => { colums.Bound(p => p.assetCode).Width(100); colums.Bound(p => p.assetDesc).Width(100); colums.Bound(p => p.remark).Width(100); colums.Bound(p => p.currencyCode).Width(100); colums.Bound(p => p.rate).Width(100); colums.Bound(p => p.currencyRate).Width(100); colums.Bound(p =>...

Button Not showing in Kendo Grid

asp.net,asp.net-mvc,kendo-ui,kendo-grid
I have a kendo grid that I'm using in asp.net MVC and the column won't display anything. It just returns empty. I don't see the input in code when I use developer tools either. columns.Template(@<text> <input type="button" class="btn btn-default" value="Tasks" onclick="window.location.href = '../..[email protected]'" /> </text>).HeaderTemplate(@<text>Tools</text>); }) I don't understand what...

Emptying the following cell of row having the same data using jquery

javascript,jquery,kendo-ui,kendo-grid
I have this simple fiddle: http://jsfiddle.net/anilca/kbfssbd4/ var dataArr = [ { DayNum: 0, Day: "Sunday", Group: "A" }, { DayNum: 1, Day: "Sunday", Group: "B" }, { DayNum: 2, Day: "Sunday", Group: "C" }, { DayNum: 3, Day: "Monday", Group: "B" }, { DayNum: 4, Day: "Monday", Group: "A" },...

How to change color of row depending on a row's value in a Kendo UI Grid

kendo-ui,kendo-grid
I have a Kendo UI Grid, which contains four columns: Highlight MAC Time Message The Highlight column can contain the values "yes" or "no", and this column is hidden. I need to create a row template that will highlight (change the color or something) the row if the value is...

conditionally applying class while expanding row in kendo grid

javascript,jquery,kendo-ui,kendo-grid
In dataBound function of my Kendo grid i want to make condition, if master row, from header is expanded, apply class "customClass" to this row. I tried: $('.k-master-row.k-state-active td').each(function(){$(this).addClass('customClass')}) it doesn't work, there is no effect, in best case I can apply class to expanded row, no way to do...

How to show link or action column in Kendo Grid

kendo-ui,kendo-grid
I am using Kendo Grid and I want link when click columns. I want field: "Name" link.and set css for link Name This my code : columns: [ { field: "Id", title: " id", template: "<a href='http://www.codeproject.com/'>Id</a>" }, { field: "Name", title: "Product Name" }, { title: "Action", template: "<a...

Kendo ui grid dropdown editor does not load data

javascript,asp.net-mvc,kendo-grid
Can not load data to kendo dropdown list. It gets data from backend but list is empty. BackEnd looks like: [HttpPost] public ActionResult GetCities(DataSourceRequest command) { var cityModel = _uow.Cities.GetAll().ToList(); var gridModel = new DataSourceResult { Data = cityModel.Select(PrepareCityModelForList), Total = cityModel.Count }; return Json(gridModel); } Front end schema: {...

Trying to eval for null value and insert link to google search when value is null

javascript,ruby-on-rails-4,kendo-grid,link-to,active-model-serializers
I have a Kendo grid that is being binded to a remote data source. I would like to insert a link to a google search when values in a specific column is Null. <%= company_URL || link_to("Search", "https://www.google.com/search?q=#{company.name}%20leadership%20team") %> I don't need to store this link in the database, so...

Setting options of a Kendo Grid that is inside an Editor Template

kendo-ui,kendo-grid,kendo-asp.net-mvc
Inside the editor template of one of my Grids, A, I have another grid, B. I want to set read and update actions of this Grid based on the current Id in the A. I've tried using Razor code inside the editor template like this: // details grid: B .Read("action",...

Kendo Grid paging not working

javascript,asp.net-mvc,kendo-grid
I'm doing data paging via an AJAX POST, and returning a json structure like: { Total: 6, Data: { {id:1,field2:'xx'}, {id:2,field2:'xx2'}, } } The grid data source is configured on the following way: grid.dataSource = new kendo.data.DataSource({ serverPaging: true, pageSize: 2, schema: { data: "Data", // using function for testing...

How to set max date of the kendo Date picker in Kendo Grid by using jquery?

jquery,kendo-ui,kendo-grid,kendo-datepicker,kendo-datetimepicker
I want to set the Maximum date for Kendo Date picker in Grid. I've a column with type "date", so i want to set maximum date for the Datepicker for that column....

Assigning dynamic value to a global variable in kendo grid column template

javascript,jquery,kendo-grid
Ok now I have this Kendo Grid code: var ds = [ { "ID" : 1, "attach" : "true", "attachment" : "http://www.google.com" }, { "ID" : 2, "attach" : "false", "attachment" : "" }, { "ID" : 3, "attach" : "true", "attachment" : "http://www.wikipedia.com" }, { "ID" : 4, "attach"...

Kendo dropdownlist binding event inside grid client template

c#,asp.net-mvc-3,razor,kendo-grid,kendo-dropdown
Am trying to add a dropdown inside the kendo grid. And I need to add it inside the clienttemplate instead of editortemplates as i need the whole grid to be in edit mode on loading itself. And this is the way i did it. .ClientTemplate("<input class='pUomDdl' #= UOMCodeEnabled ? disabled='disabled'...

Kendo UI grid dropdown and angular

angularjs,binding,kendo-ui,telerik,kendo-grid
I try to setup custom dropdown in Kendo UI. I have a reference to my issue. http://dojo.telerik.com/aFIZa/13 My issue is that I do not know how I can setup the selected text in the template attribute? I want to show the text field but save the id as a value....

How to Bind Data to kendo grid by passing date from kendo datepicker?

c#,kendo-ui,kendo-grid,kendo-asp.net-mvc,kendo-datepicker
I am new in Kendo UI, I have one kendo DatePicker and one Kendo GridView. After selecting a date from DatePicker according the data should bind to the Kendo GridView. I use jquery with Ajax and my jquery function is List<MDA.AppEntities.Orders.OrderList> objConsults = new List<MDA.AppEntities.Orders.OrderList>(); objConsults = DataFacade.Operations.GetCustomerOrderDetailsByCustomerID(Patientid,startDate,en‌​dDate ); return...

kendo - datasource - parameterMap does not bind parameters

javascript,kendo-ui,kendo-grid,url-parameters,odatacontroller
I'm not sure if I'm doing this right, as I'm new to whole these systems, but I want to manage my kendo grid data (pagination, filters, etc). I'm using this ODataController in ASP.NET Web API 2, driven from version 4 of OData package, which support parameters like: $top, $skip, $count,....

How to hide columns in Kendo Grid when editing in a popup

asp.net-mvc,kendo-ui,kendo-grid,kendo-asp.net-mvc
I use Telerik Kendo Grid editing-inline. I want to hide certain columns when editing popup the number of columns....

Complete localization of Kendo UI widgets

c#,asp.net-mvc,kendo-ui,localization,kendo-grid
I've been trying to implement a complete localization in the Kendo UI widgets using the resource files but not able to get any specific result. What I want is to localize each and every messages of the widgets. Can anybody suggest how to implement this using resource files? Is there...

Using Kendo Grid in PartialView

asp.net-mvc,kendo-ui,kendo-grid,partial-views,kendo-asp.net-mvc
I have two section in the Index view of my MVC application and I want to render two PartialView to these sections. There is no problem to render kendogrid to one Index. However, in order to render data on KendoGrid Could I use the two methods returning Json in the...

Viewing foreignkey in Kendo UI Grid

c#,asp.net,asp.net-mvc-4,model-view-controller,kendo-grid
I have some problems to navigate from a table to another in my Kendo Grid. In my grid, there is a column which is an id and I, of course prefer to display the name instead. To achieve this, I need to go in the Language Table. Here is my...

Kendo UI grid undefined decimal

javascript,post,telerik,kendo-grid
This is my grid: $("#grid").kendoGrid({ dataSource: { type: "odata", transport: { read: { url: '/Discount/Get', dataType: "jsonp", type: "POST" }, update: { url: '/Discount/Update', dataType: "jsonp", type: "POST" }, destroy: { url: '/Discount/Delete', dataType: "jsonp", type: "POST" }, create: { url: '/Discount/Add', dataType: "jsonp", type: "POST" }, parameterMap: function (options,...

Kendo UI Grid column sorting refreshes entire page

kendo-ui,kendo-grid,kendo-asp.net-mvc
I have a page that contains two tabs. Tab one contains Kendo bar charts. Tab 2 contains a kendo grid for search results and two tabs that contain 1 kendo grid each for detail information. The "Change" event of the search results grid makes an ajax call to update the...

Kendogrid population

kendo-ui,kendo-grid,kendo-asp.net-mvc
I'm new to all this kendo stuff i need help in populating kendogrid from a csv file. The csv data is stored in an array of strings returned by a service. Data looks like : 0: "Module,LogLevel,LogType,LoggedTime,LogMessage" 1: "00D02D5A4B66 ,CommServer ,Level3 ,Information ,03/16/2015 00:32:57:5716 ,[ISOMMessageHandler::Initialize]-[EventCount:20,ObjectRetryCount:6]" 2: "00D02D5A4B66 ,CommServer ,Level1 ,Information...

Format Kendo grid column filter for percentages

javascript,kendo-ui,kendo-grid,kendo-datasource
I have a kendo grid and my datasource data returns number with unknown decimal places. So I'm using a parse function on the datasource to compensate for that. DefaultMonoCPP: { editable: false, type: "number", parse: function(e) { return kendo.parseFloat(kendo.toString(e,"p4")); } } Now when I filter, I don't want it to...

How to use Kendo UI transport method?

c#,asp.net,json,kendo-ui,kendo-grid
Here I am making a list of JSON array and returning the name of the countries successfully Kendo Grid show edit option but does not display the values retrieved? [WebMethod(EnableSession = true)] [ScriptMethod(ResponseFormat = ResponseFormat.Json, UseHttpGet = true, XmlSerializeString = false)] public string coutryNames() { List<Dictionary<string, string>> list = new...

How to mark Kendo Grid's cell as edited?

kendo-ui,kendo-grid,kendo-asp.net-mvc
I'm dynamically editing some fields using JavaScript. But the problem is Kendo's dataSource doesn't recognize them as changed cells. Grid's edit mode is InCell. This is my current JavaScript code: tablesGrid.tbody.find("input[type='checkbox']").each(function () { $(this).on('change', function () { var isChecked = $(this).prop('checked'); var dataItem = tablesGrid.dataItem($(this).closest('tr')); var currentTr = $(this).closest('tr'); var...

Kendo Grid populates and posts all of the navigation properties

c#,asp.net-mvc,entity-framework,kendo-grid,kendo-asp.net-mvc
I have a Kendo UI Grid which uses the Serial class as its model. This class has relation with the row class, but I don't use any of the navigation properties in my Grid and I don't need them in this particular page. The problem is, Kendo UI populates all...

Grid is not binding using Ajax

c#,asp.net-mvc,kendo-ui,kendo-grid,kendo-asp.net-mvc
I'm doing some simple testing of the Kendo MVC Grid and I'm unable to get it to bind using Ajax. Here's my code: The JSON call in my controller: [HttpGet] public ActionResult GetRaceCarsAjax([DataSourceRequest]DataSourceRequest request) { IList<RaceCar> myRaceCars = GetRaceCars(); return Json(myRaceCars.AsQueryable(),JsonRequestBehavior.AllowGet); } protected IList<RaceCar> GetRaceCars(){ IList<RaceCar> myCollection = new List<RaceCar>();...

Updating other controls with Kendo grid

kendo-ui,kendo-grid,kendo-asp.net-mvc
I'm showing my class A in a Kendo grid with ajax data source. This class has a foreign key relationship with class B and a navigation property for that class. I'd like to show class B properties in separate textboxes. What's the best way to achieve this? I think I...

How to set kendogrid control to filterable mode “row”?

kendo-grid,telerik-grid
I am trying to add filtering to kendoGrid control with mode "row". Telerik documentation says that I should set: filterable: { mode: "row" } But when I set this is configuration, grid is still in "menu" mode. How can I set "row" mode?...

Excel export with caption before exported data

javascript,jquery,kendo-ui,kendo-grid
I was wondering if it's possible to include text above the exported data in an Excel file using Kendo UI? For example, I wish to include a description of the data above the actual data exported: Data selected using dates between 1 Jan 2011 to 1 Sep 2011 ...

JSON issue to store a function and remove the quotes

json,angularjs,node.js,kendo-grid
I try to create a json from my server and retrieve the JSON in the client angular. But my json is a function. I create this JSON in the server: var header = {}; var editor = 'function (container, options) {jsdd.appendTo(container); $compile(editor)($scope); editor.css("visibility", "visible")};'; header['editor'] = editor; In the client...

Displaying multivalued attributes from model in columns

javascript,asp.net-mvc,kendo-ui,kendo-grid,kendo-asp.net-mvc
I am just kicking things off with Kendo UI, I could not find a way to display multivalued attributes in a column, with respect to a value in the preceeding column. Here is the representational mockup of the view that I want: The values in column 2 and 3 belong...

Cascading drop down menu with editor template kendo grid mvc

kendo-ui,kendo-grid,kendo-asp.net-mvc,kendo-treeview
I trying to implement a cascading down list with editor template i am not sure if kendo support it, i have a grid when in editing move i am trying to filter data base on select data from an editor template grid is showing availablity time a user can work...

Grid read action method is not hitting

c#,asp.net-mvc,kendo-ui,kendo-grid,kendo-asp.net-mvc
In my Kendo UI Grid the the read.action() method is not hitting. I have tried everything. Please help me if I have missed something. When I debug, it is not even going to read.action method. In my index page, I am not doing anything, just returning the view. I can...

Kendo Grid and ui-sref rounding up number

javascript,angularjs,asp.net-web-api,kendo-grid,angularjs-ui-router
I'm trying to do something relatively simple, but having an issue that is driving me mad, I'm sure I am missing something simple. I have an AngularJS site that's for the most part working fine, and in that I have a Kendo Grid. All I am trying to do is...

Is there anyway to make Kendo use a Named Template?

kendo-ui,kendo-grid,kendo-asp.net-mvc
I have one class that I use it for two different purposes and on each use case some different fields should be shown, some are editables and some are read only. I'm using Kendo Grid to show them and I want customized create and edit modal windows for each use...

ASP.NET MVC 4 Kendo Grid - ForeignKeyAttribute on property is not valid

c#,asp.net,asp.net-mvc,telerik,kendo-grid
I am trying to navigate through a table in order to display the text value instead of the id and I get this error: An exception of type 'System.InvalidOperationException' occurred in EntityFramework.dll but was not handled in user code Additional information: The ForeignKeyAttribute on property 'languageId' on type 'DevelopmentNotesProject.Models.NoteForm' is...

Dynamic default value for Kendo Grid

javascript,kendo-ui,kendo-grid,kendo-asp.net-mvc
I want an auto increment column in my Kendo Grid. This field isn't server side auto increment, because I want the user to see the value and be able to change it. My current solution is to add a click attribute to Create button and loop over rows to find...

Kendo grid's Select command operation configuration

kendo-ui,kendo-grid,kendo-asp.net-mvc
Among Edit and Destroy, Kendo grid has a Select command too. But it seems there's no configuration for this operation. Do you know how can I use it? Any better way of JS binding like custom commands? Notice that it doesn't have a click event. This line is in my...

Handling events from a Kendo MVC Grid's PopUp editor window

kendo-grid,kendo-asp.net-mvc,popupwindow
I have a Kendo MVC grid that I am creating with the Html.Kendo().Grid helper. When the PopUp editor window opens, I want to catch the event and run a bit of javascript. When I configure a normal kendo window with .Events, the events fire properly and my function runs. However,...

Grid to list view ASP.NET MVC Kendo

asp.net-mvc,kendo-ui,kendo-grid
I am very new in ASP.NET MVC and Kendo and need your help. I need to show the data in both grid and list mode in same page. Please suggest what is the best way/approach to achieve this. Shall i use list and grid view both and make them hide...

Using switch in Kendo Grid Client Template

kendo-grid,kendo-asp.net-mvc
I'd like to show different values in a Kendo Grid cell. Something similar to: "#=IValue ? '1':'0'#". What's the correct syntax to use a switch to achieve this?...

How would I link to an external site from a cell in a kendo grid?

c#,asp.net-mvc-4,kendo-ui,kendo-grid
Just like the title says. I want to have a kendo grid with a column called Link. That column would need to dynamically generate a link to whatever address the user puts into it. I don't need to worry about error checking to ensure the link is valid, or anything...

KendoUI Grid Handle click events for Column Headers

javascript,jquery,html,kendo-ui,kendo-grid
Im wanting to hook up a mouse down (both left and right click) event on the click of the grid column headers in a KendoUI grid object. Just wondering if anyone has any ideas on how to go about this?

Kendo UI Grid alternative

kendo-ui,kendo-grid
Is there any free / open source alternative to the Kendo UI Grid? I used to use their Grid module when it was included in the free version, now it isn't anymore and, as I only need the Grid module, it is too expensive for me....

Kendo grid columns not displaying field off of a JSON object

json,kendo-grid
I have a kendo grid, defined as such: $("#auditGrid").kendoGrid({ height: 650, width: 650, sortable: true, filterable: true, resizable: true, columns: [ { field: "ChangeTypeDescription", title: "Change Type" }, { field: "LevelDescription", title: "Level" }, { field: "Site.ShortName", title: "Site", width: "100px", }, { field: "TimeStampLocal", title: "Date", type: "date", format:...

Format DateTime.ParseInfo

c#,datetime,kendo-grid
Good morning, I have problem with format of datetime which comes in format "Mon Jun 15 2015 00:00:00 GMT+0200 (Central Europe Daylight Time)". var value = "Mon Jun 15 2015 00:00:00 GMT+0200 (Central Europe Daylight Time)"; DateTime.Parse(value) throws CastException. I have also tried use ParseExact method which is more powerfull...

Horizontal scroll for a Kendo Grid

kendo-ui,kendo-grid,kendo-asp.net-mvc
I have a Kendo Grid inside a Kendo Window. How can I enable its horizontal scrolling using wrappers? I've tried anything, but none of them worked. The last thing I tried was surrounding the Grid with a width-limited div....