kendo-ui

Gray out a row in kendo grid based on column value

寵の児 提交于 2019-12-31 06:49:05
问题 I have a Kendo Grid whose values get populated based on a post call. I need to gray out an entire row if one of the column has a value "REGISTERED". Is there a way we can achieve this? 回答1: Add a handler function for the onDataBound event. In the onDataBound event handler, add jQuery that grey out column, something like this: function onDataBound(event) { // ... // Assumes your Kendo grid DOM element, or other appropriate element enclosing your disabled rows, is in the "el" variable el.find(

Date format is changing while fetching data using Kendo Grid

青春壹個敷衍的年華 提交于 2019-12-31 05:24:35
问题 I am trying to fetch and load data to a kendo grid using some parameters. But when I am using date parameter, format of date is changing hence showing me wrong dates in server side. As an example as a parameter I am using: new Date("April 01, 2016"). But in server side it becomes 04/01/2016 which is wrong. function passFilterCstDetails() { var statemenetInquiryParameter = {}; statemenetInquiryParameter.isPrintZero = true; statemenetInquiryParameter.isPrintPayments = true;

Kendo datepicker acting weired for different computers on two different timezone

China☆狼群 提交于 2019-12-31 04:55:14
问题 Hi we use a simple kendo datepicker for our web application. $("#DateInput").kendoDatePicker({ format: "dd/MM/yyyy", culture: "en-GB", max: new Date() }); Now when we try to get the datepicker value in Javascript my browser gives me date format dd/MM/yyyy but my colleague's browser gives him MM/dd/yyyy . We have tried to use same culture as you can see in kendo and as well as in our web.config we have put the globalization settings as follows. <system.web> <globalization uiCulture="en-GB"

Master-detail kendo ui grid (when select row in master grid get entries in details grid)

好久不见. 提交于 2019-12-31 04:25:07
问题 I am working with master-details kendo ui grid, which is separated. Master grid is located within tabstrip 1 (tabstrip.select(0)). Fields for add/edit (for master grid) is located within tabstrip 2 (tabstrip.select(1)) in top page. In tabstrip 2 I have nested tabstrips for details grid (in middle-bottom page). Details grid is located within nested tabstrip 1 (tabstripNested.select(0)) and fields for add/edit is located within nested tabstrip 2 (tabstripNested.select(1)). What I want? I want

Kendo mobile template styling/formatting not working

淺唱寂寞╮ 提交于 2019-12-31 04:11:27
问题 I am trying to use a template as shown below, the outcome is a view with all elements from the template on one line, even though i am using to separate the elements. Why does this not display properly? It seems that no matter what styling i do it still ends up a single line view. UPDATE The culprit is the kendo style sheet - kendo.mobile.all.min.css - So the new question for a kendo expert is why does kendo handle input fields differently when they appear in a listview via a template than

Javascript: cancel or let an event continue?

时光总嘲笑我的痴心妄想 提交于 2019-12-31 02:34:27
问题 My scenario deals with Kendo UI, but I think it probably applies to JavaScript generally, hence the JavaScript tag. I have a Kendo scheduler with the edit event option set to functionA. In functionA, I create a Kendo window (basically a modal) that asks the user a question; in one case the edit event should continue and bubble up as if the modal had never been there, in the other, it should prevent default and return. The problem is that the modal is non-blocking, so the confirm modal comes

Kendo-Knockout: Calling a method that changes viewmodel property from a template with data-binding inside a grid, breaks bindings

大兔子大兔子 提交于 2019-12-30 11:34:08
问题 I am using RPNiemeyer`s kendo-knockout library. I have a kendo grid with a kendo template in it. In the template there is a button which uses knockout click binding which calls a method that changes the viewModel. Steps to reproduce: Click the button in the grid. A method is called that changes the property of the viewModel and alerts the new value. Click the button again. The button is not working any more. Note: If You remove the line that changes the property of the viewmodel everything is

Bind checbox list to dropdownlist in kendo ui by mvvm [closed]

我们两清 提交于 2019-12-30 11:32:09
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I have a dropdownlist in my view i want in my view.I want when change my dropdownlist,a java script template bind dropdownlist.i write this but dont work plead help me. var roles=[{ code:1, roleName: "Admin",

Changing Angular model to update Kendo

荒凉一梦 提交于 2019-12-30 11:14:13
问题 I've been using Angular for a project and just recently found out about the Kendo-Angular project over at http://kendo-labs.github.io/angular-kendo/#/. I was successful in adding Angular-Kendo into my project and it's working like I think it should with the exception of updating models like I'm used to. This project is exactly what I am looking for, however, no examples in the documentation actually show you being able to update an Angular model so it updates a Kendo data source. Here is a

Method parameter with (attribute) in brackets

给你一囗甜甜゛ 提交于 2019-12-30 11:07:18
问题 I have a code example from KendoUI. public ActionResult Customers_Read([DataSourceRequest]DataSourceRequest request) { return Json(GetCustomers().ToDataSourceResult(request)); } private static IEnumerable<CustomerViewModel> GetCustomers() { var northwind = new SampleEntities(); return northwind.Customers.Select(customer => new CustomerViewModel { CustomerID = customer.CustomerID, CompanyName = customer.CompanyName, ContactName = customer.ContactName, // ... }); } This example works fine. I am