kendo-ui

how do I get the source (sende)r element of a kendoui widget

淺唱寂寞╮ 提交于 2019-12-10 17:17:24
问题 How does one get the caller (sender) of the kendoui datepicker widget? Or any widget for that matter. <input id="datepicker1" class="datepicker" value="10/10/2011" /> $(document).ready(function () { // ready $(".datepicker").kendoDatePicker({ change: onchange }); }); function onchange(e) { $(this).hide(); } Here is a fiddle: http://jsfiddle.net/bryanb/zz48F/ 回答1: The sender is available as this.element . It will be a jQuery object: $(function () { function onchange(e) { alert(this.element

How to resize a kendo ui combobox?

空扰寡人 提交于 2019-12-10 16:17:58
问题 How can I change the width of kendo ui combobox? I use version: 2012.3.1114 I've tried: #options { padding: 30px; } #options h3 { font-size: 1em; font-weight: bold; margin: 25px 0 8px 0; } .k-combobox{ width:60px; } Javascript: $("#select").kendoComboBox(); Html: <select id="select"> <option value="null">nada</option> <option value="true">ON</option> <option value="false">OFF</option> </select> With a file it works but not in jsfiddle: example 回答1: Try This : $(document).ready(function() { $(

Kendo UI for MVC Grid How do I hide the ID column

笑着哭i 提交于 2019-12-10 15:53:22
问题 I would like to hide the ID column of a Kendo grid but still be able to reference it for other actions. I tried making the Width = 0 but that only makes it really wide. @(Html.Kendo().Grid(Model) .Name("LineItems") .Columns(columns => { columns.Bound(o => o.ID).Width(1); columns.Bound(o => o.Ui).Width(20); columns.Bound(o => o.QtyOrdered).Width(20); columns.Bound(o => o.Nomenclature).Width(200); columns.Bound(o => o.QtyShipped).Width(140); columns.Bound(o => o.QtyReceived).Width(200); columns

Kendo DatePicker Max date issue

做~自己de王妃 提交于 2019-12-10 15:38:23
问题 I have a two kendo DatePickers to select start and end date of a job. job consists of multiple tasks which contains its own completion date (tasks are listed in a grid with kendo DatePicker for each record to select the completion date) I set max and min of each task when user sets the job start and end date. I use kendo to bind data with kendo (through kendo knockout). problem is when user clears the end date of a job,I set the max date of task level DatePicker to (2099, 11.31), but when I

Kendo Grid using inline editing and custom editor dropdown control

被刻印的时光 ゝ 提交于 2019-12-10 15:24:01
问题 I am trying to implement a custom editor for a column on a grid. The editor uses a DropdownList control. I am able to get the Dropdown to show upon add/edit, however after making a selection and posting the json that is sent contains the default value, not the value that was selected. My implementation is below it is an excerpt from a Razor page. Can you help me figure out what I've done wrong here? <div id="divGrid"></div> <script> $(document).ready(function () { var dsGroupForm = new kendo

Display only datepicker in kendo inline editing not datetime picker

不问归期 提交于 2019-12-10 14:12:01
问题 I have an issue to disply the datepicker in kendo inline editing. It shows datetime picker all the times. columns.Bound(k => k.datefrom).ClientTemplate("#= (datefrom == null) ? ' ' : kendo.toString(datefrom, 'dd.MM.yyyy') #").Width(150); I also tried like this also columns.Bound(k => k.datefrom).ClientTemplate("#= (datefrom == null) ? ' ' : kendo.toString(datefrom, 'dd.MM.yyyy') #").Format("{0:d}").Width(150); Any idea? 回答1: You need to specify the Model Property strictly to Date in View

PartialView with a form in a kendo window

点点圈 提交于 2019-12-10 13:49:47
问题 In my project, I need to put some forms in Kendo windows. These forms are in another partial view. I use this to load the partial view : @(Html.Kendo().Window() .Name("editPasswordPopUp") .Visible(false) .Modal(true) .Width(600) .Height(500) .Position(settings => settings.Top(70).Left(200)) .Title("Edit your password") .Content("loading user info...") .LoadContentFrom("EditPassword", "Member") .Iframe(true) .Resizable() .Draggable() ) The actions of the PartialView : public ActionResult

How do I refresh a Kendo UI combo box?

此生再无相见时 提交于 2019-12-10 13:44:23
问题 I have an ASP.Net MVC Kendo UI combobox that is databound to a table with 1000's of records. I've set the MinLength property to 5 so I only return relevant results. The problem is, the user might need to change the text value all together. Is there a way to tell the control to refresh? Here's the code for the control... @(Html.Kendo().ComboBoxFor(x => x.Product) .Name("Product") .DataTextField("Name") // Display value .DataValueField("Id") //Return value .MinLength(5) .AutoBind(false)

KendoUI line Graph, How to keep labels from being drawn outside the graph?

吃可爱长大的小学妹 提交于 2019-12-10 13:43:30
问题 I'm using KendoUI line graph. I have labels on a line graph and the labels are getting cut off on top. Is there a way to prevent this? Here is a jsFiddle project to play with: http://jsfiddle.net/rodneyhickman/2eWYg/1/ Here is my Markup: <div style="padding:20px;" > <div id="divChart"></div> </div> Here is my script: jQuery('#divChart').kendoChart({ seriesDefaults: { type: "line", missingValues: "interpolate" }, legend: { position: "bottom" }, tooltip: { visible: true, format: "{0}%" },

Kendo DropDownListFor() with ASP.NET-MVC

心已入冬 提交于 2019-12-10 13:24:07
问题 i have a problem into the ASP.NET-MVC Helper I have a form that give a POST into action **create of the controller Occurrence passing a parameter of type occurrence that corresponding at the Model of the view where the form is inserted, for register the occurrence is needed an TypeOccurrenceID , i'm trying to get this value using Html.DropDownListFor() , but this not working when the form is posted, the Occurrence past in the parameter don't have the OccurrenceTypeId corresponding with the