kendo-ui

How do I remove a row from a Kendo Grid

帅比萌擦擦* 提交于 2019-12-01 08:18:53
I have a very simple setup, a grid called #list with a datasource populated with records to display. I have a button on each row with an onClick event that calls this function: // Soft-Delete person var processURL = crudServiceBaseUrl + '?method=deletePerson'; function deletePerson(id){ if (confirm('#getResource("person.detail.confirmdel")#')) { $.ajax({ type: 'POST', url: processURL, data: { PERS_KY: id }, success: function (data){ var thingToDelete = "tr:eq("+id+")"; var grid = $("#list").data("kendoGrid"); grid.removeRow(thingToDelete); }, error: function (xhr, textStatus, errorThrown){

Kendo DatePickerFor issue in CHROME version 56.0.2924

戏子无情 提交于 2019-12-01 08:07:53
问题 I am using Kendo DatePickerFor . After I recently updated my chrome browser, it shows blank value in date picker control. I am using it for month selection with MMM yyyy format. Can anybody please help me out? P.S. - My previous chrome version was 55.0.2883 and it was working perfectly fine. My code in view file is: @(Html.Kendo().DatePickerFor(m => m.FromDate).Start(CalendarView.Year).Depth(CalendarView.Year).Format("MMM yyyy")) 回答1: This fixed the problem for me: http://www.telerik.com

kendo ui dropdownlist- How to do manual Cascading?

流过昼夜 提交于 2019-12-01 08:03:08
问题 So im currently trying to adapt some previous code to use with dynamic dropdownlists, the problem seems to be that the cascadeFrom property only takes an id. So i need to use another alternative. Here's my code: fieldsDiv.html(dynForms + dynFormFields); var appendedForms=fieldsDiv.find(".dynamicForms"); var appendedFormFields= fieldsDiv.find(".dynamicFormFields"); debugger; $(appendedForms).kendoDropDownList({ dataTextField: "name", dataValueField: "id", dataSource: { type: "json",

Kendo DropDownList in Grid shows value after selection

时光怂恿深爱的人放手 提交于 2019-12-01 06:50:37
I'm trying to use a drop-down list in my grid. This is my grid definition: $("#grid").kendoGrid({ editable: true, dataSource: { data: data, schema: { model: { fields: { Name: { type: "string", editable: false }, FruitName: { type: "string" }, FruitID: { type: "number" } } } } }, columns: [{ field: "Name", title: "Name", width: 150 }, { field: "Fruit", title: "Fruit", width: 115, editor: renderDropDown, template: "#=FruitName#" }] }); And this is my editor function: function renderDropDown(container, options) { var dataSource = [ //{ name: "", id: null }, { FruitName: "Apple", FruitID: 1 }, {

Mvvm dropdwonlist in kendoui

落爺英雄遲暮 提交于 2019-12-01 06:37:51
I have a dropdownlist in my page this is the code: <div id="test"> Role: <span data-bind="text: role"></span> </br> Roles:<select id="roles" data-bind="source: roles, value: role" data-text-field="roleName" data-value-field="roleId" ></select> <ul id="view" data-template="Access-template" data-role="listview" data-bind="source:Accesses"></ul> <script id="Access-template" type="text/x-kendo-template"> <li> <input type="checkbox" data-bind="checked: selected" /> <label data-bind="text: AccessName" /> </li> </script> </div>​ and I want that when I change the dropdownlist value it changes my role

Bug in kendo ui grid lrt css in chrome

廉价感情. 提交于 2019-12-01 06:21:50
There is a bug in kendo ui grid rtl css in chrome. If you notice example in Telerik site, you can see this bug: http://demos.telerik.com/kendo-ui/web/grid/rtl.html When you go to page 6, the header and body, isn't align. This error is in chrome (for me: V35) and in the firefox (V28) and IE(V11) does not this error. You can same error in horizontal scrolling. For example in ltr direction: http://jsbin.com/otolop/2/edit this is OK in all browser. But in rtl direction: http://jsbin.com/otolop/6/edit It has error in chrome and has no error in firefox and IE. How can I fix this error. Thanks alot.

Kendo grid format time issue in date column [duplicate]

。_饼干妹妹 提交于 2019-12-01 06:07:54
问题 This question already has answers here : Kendo grid date column not formatting (7 answers) Closed 2 years ago . I have a kendo grid, it has a date column. I want to show date and time there. I am using below format in column definition, format: "{0:dd-MMM-yyyy hh:mm:ss tt}" In modal I used date type Updated_Date: { type: "date" } Output date is coming as '10-Oct-2013 12:00:00 AM', but actual date returned via ajax call is "Updated_Date":"2013-10-10T05:02:40.44" What to do to show the correct

How do I remove a row from a Kendo Grid

心已入冬 提交于 2019-12-01 05:09:09
问题 I have a very simple setup, a grid called #list with a datasource populated with records to display. I have a button on each row with an onClick event that calls this function: // Soft-Delete person var processURL = crudServiceBaseUrl + '?method=deletePerson'; function deletePerson(id){ if (confirm('#getResource("person.detail.confirmdel")#')) { $.ajax({ type: 'POST', url: processURL, data: { PERS_KY: id }, success: function (data){ var thingToDelete = "tr:eq("+id+")"; var grid = $("#list")

Mvvm dropdwonlist in kendoui

青春壹個敷衍的年華 提交于 2019-12-01 04:26:06
问题 I have a dropdownlist in my page this is the code: <div id="test"> Role: <span data-bind="text: role"></span> </br> Roles:<select id="roles" data-bind="source: roles, value: role" data-text-field="roleName" data-value-field="roleId" ></select> <ul id="view" data-template="Access-template" data-role="listview" data-bind="source:Accesses"></ul> <script id="Access-template" type="text/x-kendo-template"> <li> <input type="checkbox" data-bind="checked: selected" /> <label data-bind="text:

Kendo UI - Specify parameter name on dataSource read

孤者浪人 提交于 2019-12-01 03:26:14
问题 With Kendo UI , I am using an autocomplete box to try and retrieve data from my server. It is hitting an ASP.NET MVC controller with the following signature. public ActionResult aspect(string term){ // ... } This means that the request needs to have the correct parameter in the url. Now the issue I am running into is that I cannot discover a way to specify this in the dataSource mechanics. I have read the documentation on parameterMap dozens of times and it makes absolutely no sense to me in