kendo-ui

How to select kendo grid row if that row is not present on first page of the kendo grid./

我只是一个虾纸丫 提交于 2019-12-13 08:49:50
问题 Tried to select a kendo grid row in dataBound (Note: that row is not on first page of the grid) but it didn't selected 3rd page row. dataBound: function(e) { if (id!== "" && id!== undefined && id!== null) { var grid = e.sender; grid.select("tr:contains('" + id + "')"); } }, Here id is in the page URL and getting ids value like below: and that will get passed in dataBound id var. id = $location.search().id; Any ideas how i can select the 3rd page row? Above logic works for the rows that are

integrating KENDOUI toolbar with grid toolbar

三世轮回 提交于 2019-12-13 08:28:45
问题 i want to integrate KENDOUI toolbar toolbar with basic CRUD toolbar operation of KENDOUI grid grid. I want to have button 'create' in my basic toolbar (first link) that adds new line in my grid(second link). 回答1: I don't think you can combine the Kendo ToolBar widget with the built-in grid toolbar but you can completely define the grid's toolbar using a template which can be a Kendo ToolBar that you have complete control over. http://dojo.telerik.com/@Stephen/OJAbI In this example I have

How to pass selected files in Kendo Upload as parameter in ajax request

徘徊边缘 提交于 2019-12-13 08:21:38
问题 After much of struggle im posing this question. Im using a Kendo Upload on a page. Am able to post the selected files on the asyn mode with whe the page has Html.BeginForm. But I'm not able to send file details as HttpPostedFileBase when I use ajax request to send data to the controller. Following is my html <form class="form-horizontal" role="form"> <div class="form-group"> @Html.Label("Complaint Name", new { @class = "col-sm-3 control-label" }) <div class="col-sm-4"> @Html.TextBoxFor( m =>

kendo combobox reset after loading back view from controller

两盒软妹~` 提交于 2019-12-13 08:08:06
问题 I have a kendo combobox @(Html.Kendo().ComboBox() .Name("ddSystems") .Filter("contains") .Placeholder("-- Select --") .BindTo((IEnumerable<SelectListItem>)ViewBag.systemList) ) Onchange, a textbox is loaded in ajax. A submit button posts the textbox value and combobox value to the controller. When I get back to the view, I need ddSystems to be reset to empty. I used $('#ddSystems').data('kendoComboBox').value(null) and $('#ddSystems').data('kendoComboBox').text('') but it always retains the

Kendo UI Grid: Hide column when initialize from HTML table?

梦想的初衷 提交于 2019-12-13 07:53:26
问题 $(document).ready(function() { $("#grid").kendoGrid({ height: 550, sortable: true }); }); <link href="http://kendo.cdn.telerik.com/2014.1.318/styles/kendo.common.min.css" rel="stylesheet"/> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src="http://kendo.cdn.telerik.com/2014.1.318/js/kendo.all.min.js"></script> <div id="example"> <table id="grid"> <colgroup> <col /> <col /> <col /> <col /> <col /> </colgroup> <thead> <tr> <th data-field="make"

how to assign dataSource to DetailgridOptions(dataItem)

时光总嘲笑我的痴心妄想 提交于 2019-12-13 07:38:06
问题 I have a kendo grid which has buttons in every row, On click the buttons open a pop-up with different grid on each button click, and there is a detail teamplate in each row of pop-up grid which contains another grid. Now the problem is how to assign dataSource to the 3rd grid when detailGridOptions(dataItem) function is called. var p=0; $scope.detailGridOptions = function (dataItem) { return { dataSource: new kendo.data.DataSource({ schema: { model: { id: 'Id', fields: { Id: { type: 'number'

How can I get the Kendo UI MVC datetimepicker to format the date unambiguously in the URL/form?

狂风中的少年 提交于 2019-12-13 07:34:48
问题 I'm trying to use the Kendo UI MVC dateTimePicker to format the date unambiguously so that MVC model binding understands it. I have a datetimepicker control in a form which submits via a GET request. MVC expects dates in this format: yyyy-MM-dd but I want to display dates on the page as dd/MM/yyyy If I use this code, MVC parses the date correctly, but displays the year first to the user, which isn't what I want: @(Html.Kendo().DateTimePicker() .Name("ToDate") .Format("yyyy-MM-dd") ) Is there

kendo window with minimize and maximize

落爺英雄遲暮 提交于 2019-12-13 07:10:39
问题 I have two kendo windows one below the other in the page with minimize and maximize options. When I close or minimize the first window the window below should come up. Could you please help me achieve this? <div id="dialog"></div> <div id="dialog1"></div> <script> $("#dialog").kendoWindow({ animation: { close: false } }); $("#dialog1").kendoWindow({ animation: { close: false } }); </script> 回答1: Try: <script> $("#dialog").kendoWindow({ animation: { close: false }, close: function(e) { var d1

Checkbox is always coming as unchecked

泄露秘密 提交于 2019-12-13 07:06:58
问题 I have following Kendo Grid ans associated jQuery. On a button click, I need to know whether checkbox is checked. But at present it is showing 'false' always. How can we correct it? @Scripts.Render("~/bundles/jquery") <script type="text/javascript"> $(document).ready(function () { $('#btnMove').click(function () { var sourcegrid = $('#GridParent').data('kendoGrid'); //SOURCE GRID var destinationgrid = $('#ChildGrid').data('kendoGrid'); // DESTINATION GRID alert('Button Clicked'); var grid = $

Kendo-Knockout: widget observable is not filled with the actual widget

Deadly 提交于 2019-12-13 06:44:21
问题 I am using RPNiemeyer`s kendo-knockout library. I have a kendo window: HTML: <div data-bind="kendoWindow: {isOpen: isOpen, title:'Language', width: 400, height: 200, modal: true, widget: popUpWindow }" > JavaScript part that centers the window: this.popUpWindow = ko.observable(); self.isOpen.subscribe(function (newValue) { if (newValue) { self.popUpWindow().center(); } }); I am using the source code from my previous question for my fiddle: Kendo-Knockout: Window does not close correctly I am