kendo-ui

Kendo Grid hierarchy passing ID from master grid

旧城冷巷雨未停 提交于 2019-12-02 04:16:51
I have a Kendo Hierarchial Grid where the master grid contains the Client details and the sub grid contains the Point of Contacts . I am able to pass the Client ID from the master grid into the sub grid Read action and the data is loading fine. However, the issue comes while passing the Client ID into a Add New Point of Contact button in the sub grid. If I hard-code the value the Controller method runs fine. However, it is unable to pick the reference Client ID . The sub grid is as follows: <script id="template" type="text/kendo-tmpl"> @(Html.Kendo().Grid<Track24.Billing.Web.Models

How to set focus to cell in Kendo UI for MVC Grid

妖精的绣舞 提交于 2019-12-02 04:16:29
I need to set the focus on a Kendo UI Grid to a specific cell, in the first row during the DataBound event. I'm using Kendo for MVC, here is the definition of my column: columns.Bound(o => o.QtyCurrentlyReceived).Width(75).Title("Qty Curr Rx"); Okey then this is the code that should do the work for you: var theCell = $('#Grid tbody td:eq(3)');//sample selector for a cell $('#Grid').data('tGrid').editCell(theCell);//ask the Grid to put that cell in edit mode 来源: https://stackoverflow.com/questions/11851071/how-to-set-focus-to-cell-in-kendo-ui-for-mvc-grid

Kendo Grid Not Saving Values After Moving to the next cell

房东的猫 提交于 2019-12-02 04:00:18
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 (isEditStarted) { var code = e.keyCode || e.which; if (code === 37) { //left Key //var eventEnter = jQuery.Event(

How to initialize controls in row details with jQuery DataTables and Responsive extension

烈酒焚心 提交于 2019-12-02 03:56:32
I've this issue I didn't see during development but it happens to my client. I use jQuery DataTables to let the user complete with information. On a big/normal resolution this does not happened because the DataTables can show all the columns. But on lower resolution the grid shows a green plus button and the controls "inside" that group are not initialized correctly. Normal page with lower resolution: Using the Chrome Dev Tools' Console: I can excecute this: $(".k_numeric").kendoNumericTextBox({ format: "c", decimals: 2 }); And the controls now are display correctly. So it seems that when the

Cloning div containing kendo inputs

柔情痞子 提交于 2019-12-02 03:43:59
I have an application which allows users to dynamically create divs containing kendo inputs. To do so I have a div which contains multiple kendo inputs which I use as a sort of template. When the user decides to add a section to the page, i clone my div using jquery.clone(). Everything looks fine in the UI, but since the kendo inputs only get initialized one time in HTML and are then copied, the inputs are not rebuilt therefore the initial ID is not unique and the inputs are not functional. I tried to fix this programmatically by doing var $kendoInputs = $$(".draggableContainer .k-input"); for

Unable to bind data to Kendo Scheduler

匆匆过客 提交于 2019-12-02 03:40:10
I've got this Kendo Scheduler that is displayed in the View but without any data. The Scheduler on the View: @(Html.Kendo().Scheduler<ProjName.Models.ScheduleInspectionModel>() .Name("scheduler") .Views(views => { views.DayView(); views.WorkWeekView(); views.WeekView(); views.MonthView(mv => mv.Selected(true)); views.AgendaView(); }) .Timezone("Etc/UTC") .DataSource(d => d .Read("ControllerName", "GetScheduleInspections") ) ) The datasource invokes the controller method below: public ActionResult GetScheduleInspections([DataSourceRequest]DataSourceRequest request) { ScheduleInspectionModel sim

Kendo window.refresh not successfully grabbing partial view

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 03:31:11
all. Thank you in advance. I have a window which much refresh every time a dropdown selection is changed (or button is pressed). The controller is being called upon refresh, but the view is not being called/refreshed, for some reason. Am I missing something fundamental? Window: @(Html.Kendo().Window() .Name("EditWindow") .Title("Edit Contact") .LoadContentFrom("_ContactEdit", "Contacts", new { selectedContact = Model.ContactId }) .Content("Loading...") .Visible(false) .Draggable() .Resizable() .Width(400) .Modal(true) .Actions(actions => actions.Pin().Minimize().Maximize().Close()) ) Refresh

Kendo Chart category axis fix number of labels

烈酒焚心 提交于 2019-12-02 02:31:50
I have a kendo chart with date time series on x-axis as below but i wanted to fix the number of labels on the axis. Could you please help me on this how to acheive. @(Html.Kendo().Chart(Model.ParameterValueList) .Name("chart") .Title("Chart Title") .DataSource(ds => ds .Group(group => group.Add(model => model.Parameter.Name)) ) .Series(series => { series.Line(Model.ParameterValueList).CategoryField("ReceiveTime").Field("Value").Stack(false); }) .CategoryAxis(axis => axis .Categories(model => model.ReceiveTime).Date().RoundToBaseUnit(true) .Labels(l => l.Rotation(-45).Format("dd MMM yyyy hh:mm

Kendo UI reload treeview

為{幸葍}努か 提交于 2019-12-02 02:09:00
问题 I load a complex treeview with kendo ui via ajax because I need to load the tree with one request (works fine): $(document).ready(function() { buildTree(); }); function buildTree(){ $.getJSON("admin_get_treedata.php", function (data) { $("#treeview").kendoTreeView({ select: function(item) { editTreeElement(item,'tree'); }, dataSource: data }); }) } If I try to reload the complete tree after changing some data via ajax the new build tree does not work correct and does not update the text. $

Kendo UI reload treeview

倾然丶 夕夏残阳落幕 提交于 2019-12-02 01:21:55
I load a complex treeview with kendo ui via ajax because I need to load the tree with one request (works fine): $(document).ready(function() { buildTree(); }); function buildTree(){ $.getJSON("admin_get_treedata.php", function (data) { $("#treeview").kendoTreeView({ select: function(item) { editTreeElement(item,'tree'); }, dataSource: data }); }) } If I try to reload the complete tree after changing some data via ajax the new build tree does not work correct and does not update the text. $.ajax({ type: 'POST', url: 'ajax/ajax_update_layer.php', data: { layerid:id, ... }, success: function(data