kendo-ui

How to add a template to a Kendo grid toolbar

拥有回忆 提交于 2020-01-13 19:01:08
问题 I am trying to add a custom template to Kendo MVC grid. My template should contain 2 things Create button to add new record to the grid Autocomplete box to filter the data in the grid. I am trying the following code : .ToolBar(toolbar => { toolbar.Template(@<text> <div class="toolbar"> <label class="category-label" for="category">Filter by name:</label> @(Html.Kendo().AutoComplete() .Name("employees") .DataTextField("empName") .Filter("contains") .MinLength(3) .Events(e => e.Change(

Kendo UI reference not working in Razor view

二次信任 提交于 2020-01-12 13:57:15
问题 I am trying to create a Telerik Grid view but when I go to reference kendo it does not recognize it. Visual Studio is giving me an error when I try to reference kendo. This is the code @(Html.Kendo().Grid) and below is the error. 'System.Web.Mvc.HtmlHelper<dynamic>' does not contain a definition for 'Kendo' and no extension method 'Kendo' accepting a first argument of type 'System.Web.Mvc.HtmlHelper<dynamic>' could be found (are you missing a using directive or an assembly reference?) I have

Kendo UI reference not working in Razor view

人走茶凉 提交于 2020-01-12 13:56:31
问题 I am trying to create a Telerik Grid view but when I go to reference kendo it does not recognize it. Visual Studio is giving me an error when I try to reference kendo. This is the code @(Html.Kendo().Grid) and below is the error. 'System.Web.Mvc.HtmlHelper<dynamic>' does not contain a definition for 'Kendo' and no extension method 'Kendo' accepting a first argument of type 'System.Web.Mvc.HtmlHelper<dynamic>' could be found (are you missing a using directive or an assembly reference?) I have

Kendo UI Globalization / Language packs

試著忘記壹切 提交于 2020-01-12 04:09:38
问题 Kendo UI does not come with localization packs. You can only chose a culture file which will only setup number and date formats, but not the actual texts displayed in the widgets (for example: the pager texts - items per page, next page, etc., the filter menus (Is equal to, etc.), the grid parts (Drag a column here....), etc.) To localize a widget one must pass, in the individual options of each widget, a bunch of messages to override the messages used by default by Kendo UI. Something like

Kendo Grid Not Saving Values After Moving to the next cell

折月煮酒 提交于 2020-01-11 11:29:30
问题 I have tried to modify the behavior of the InCell Edit Mode of kendo Grid. I mean i tried to navigate to cells using arrows but i have a problem in doing So. This is my code: $("#grid").keydown(function (e) { debugger; isEditStarted = true; var totlaColumns = $($(" #grid td")[0]).nextAll().length + 1; currentTD = $(" #grid td.k-edit-cell"); var indexx = $("#grid td").index($(" #grid td.k-edit-cell")); //currentTDIndex = $(currentTD).parent().children().index($(currentTD)) + 1; if

How to change the text on Kendo UI Grid destroy or delete command action?

笑着哭i 提交于 2020-01-11 08:13:26
问题 I'm using a KendoUI KendoGrid. I have a column with delete button or "destroy" action. Kendo displays an alert box with the text "Are you sure you want to delete this record?" I need this text to be more specific to my situation. How do you customize this text? Any help would be appreciated. My code for adding the columns is: $reports.kendoGrid( { dataSource: dataSource, pageable: { refresh: true, pageSizes: true }, toolbar: [{ name: "create", text: "Add" }], columns: [ { field: 'name', title

How to change the text on Kendo UI Grid destroy or delete command action?

﹥>﹥吖頭↗ 提交于 2020-01-11 08:13:09
问题 I'm using a KendoUI KendoGrid. I have a column with delete button or "destroy" action. Kendo displays an alert box with the text "Are you sure you want to delete this record?" I need this text to be more specific to my situation. How do you customize this text? Any help would be appreciated. My code for adding the columns is: $reports.kendoGrid( { dataSource: dataSource, pageable: { refresh: true, pageSizes: true }, toolbar: [{ name: "create", text: "Add" }], columns: [ { field: 'name', title

Kendo UI copying data through controls

别等时光非礼了梦想. 提交于 2020-01-11 06:43:09
问题 Is it possible to take 2 separate Kendo UI grids and be able to pass data back and forth through UI controls (like forward and backward arrows)? The pattern would would be to take the master list on the left, select items and have a refined list on the right. 回答1: If is possible and it is not hard to do but you have to do it by yourself so you need: Some knowledge on KendoUI Grid and DataSource and the events that they expose. Some knowledge on JavaScript + jQuery that help you with the

KendoUI DateTimePicker undefined on document.ready

ε祈祈猫儿з 提交于 2020-01-11 06:19:10
问题 I have a Kendo DateTimePicker control in an mvc (asp.net) partial view that I am trying to access from document.ready(): @(Html.Kendo().DateTimePickerFor(vvm => vvm.StartTime) .Name("dtpVisitStart") .Format("yyyy/MM/dd HH:mm tt") .TimeFormat("HH:mm:tt") .Events(e => e.Change("dtpVisitStart_Change") ) ) The javascript: $(document).ready(function () { TestDTP(); }); function TestDTP() { var dtp = $("#dtpVisitStart").getKendoDateTimePicker(); debugger; } When the debugger line runs dtp is

KendoUI DateTimePicker undefined on document.ready

元气小坏坏 提交于 2020-01-11 06:19:07
问题 I have a Kendo DateTimePicker control in an mvc (asp.net) partial view that I am trying to access from document.ready(): @(Html.Kendo().DateTimePickerFor(vvm => vvm.StartTime) .Name("dtpVisitStart") .Format("yyyy/MM/dd HH:mm tt") .TimeFormat("HH:mm:tt") .Events(e => e.Change("dtpVisitStart_Change") ) ) The javascript: $(document).ready(function () { TestDTP(); }); function TestDTP() { var dtp = $("#dtpVisitStart").getKendoDateTimePicker(); debugger; } When the debugger line runs dtp is