kendo-asp.net-mvc

how to set LoadContentFrom kendo window in run time

北慕城南 提交于 2019-12-19 11:47:16
问题 i'm starter in kendo ui, i want use kendoUi window but i have some problem for use i write this code for create window @(Html.Kendo().Window().Name("Details") .Title("Customer Details") .Visible(false) .Modal(true) .Draggable(true) .Width(300) ) in page i have some button , i want when user click in one of this button set LoadContentFrom dynamically with jquery. But I do not know how to do it. please help me. thanks all. 回答1: you can try this $("#youbuttonID").bind("click", function() { $("

Kendo : ComboBox in a grid - Sending additional data of selected combobox to combobox Read()

房东的猫 提交于 2019-12-18 09:19:32
问题 ASP.NET MVC5 I have a combobox in a grid (InLine Edit): columns.Bound(x=>x.AccountID).EditorTemplateName("MyTemplate") Where MyTemplate is in /Shared There are millions of Accounts. When I try to edit the combo box in a grid and choose a new value, the ID of the Account, not the name, appears. This is because of course the name of the account is not immediately present so in the Read().Data() of the ComboBox.Datasource I need to send additional data ; the AccountID. My ComboBox Template looks

Kendo UI chunk upload to Microsoft Azure

牧云@^-^@ 提交于 2019-12-14 04:07:33
问题 I'm implementing the chunk upload functionality for the attachment upload feature of an ASP.Net Core website project. Currently the file upload is handled by the Kendo UI library but the current implementation does not support chunk upload. The attachments will be uploaded to an Azure blob. I've followed the examples given by the library but my ASP.Net controller receives only the first chunk of the upload file, the chunks are not coming. Clint side: $("#xyzUpload").kendoUpload({ async: {

Cannot open the edit popup of kendo grid using jquery

本秂侑毒 提交于 2019-12-14 03:45:32
问题 I am implementing a context menu for my kendo grid on MVC page. I am trying to call the edit button on my kendo grid using on click of the context menu. I have implemented event on my context menu and on the event written jquery code to call fire the click event of the edit button. I do see the window popping up for a split second and closing. How do I get this working @(Html.Kendo().ContextMenu() .Name("menu") .Target("#GridTeam") .Filter("tr") .Orientation(ContextMenuOrientation.Vertical)

Hide an element conditionally by its value

不想你离开。 提交于 2019-12-13 23:35:23
问题 I have a kendo grid containing following columns. 1.Name 2.Age 3.Type{values:public,private} I need to hide a column in specific row. In my problem, i want to hide age cell if Type value is private. 回答1: using if else format columns.Template(@<text></text>) .ClientTemplate("#if (field == value) {#" + "<a></a>" + "#}else {#" +"<input name='chkSubscribed' class='subscribedClass'type='type': '' #/>" + "#} #").Width(130).Title("title"); 回答2: You can't hide the cell but you can hide the age

Kendo Gantt (MVC) is parsing dates on US calendar (I'm in the UK!)

狂风中的少年 提交于 2019-12-13 18:44:45
问题 I'm in the UK and am using a Kendo MVC Gantt chart as follows: @(Html.Kendo().Gantt(Of IMS2_App.JobTasksVM, IMS2_App.Models.Dependency)().Name("gantt") _ .Columns(Sub(columns) columns.Bound("id").Title("id").Width(20) columns.Bound("title").Title("Task").Width(200).Editable(False) columns.Bound("start").Title("Start Date").Format("{0:dd MMM yyyy}").Width(90).Editable(True) columns.Bound("end").Title("End Date").Format("{0:dd MMM yyyy}").Width(90).Editable(True) End Sub) _ .Views(Sub(views)

Kendo MVC: Adding Edit, Delete Buttons to Grid

懵懂的女人 提交于 2019-12-13 16:29:29
问题 Assuming I have the below table: @Html.Kendo().Grid(Model).Name("Staff").Columns(x => { x.Bound(y => y.StaffId); x.Bound(y => y.FirstName); x.Bound(y => y.LastName); x.Bound(y => y.Email); x.Bound(y => y.Phone); x.Command(y => y.Custom("Edit").Action("edit", "controller", new { id = ????? })); }).Sortable().Scrollable().Pageable(x=> x.PageSizes(true)).Filterable() How can I pass the primary key value (StaffId in this case) associated to the row to the object route values similar to the way it

Kendo Multiselect: Selected values from binded model are not initialized

℡╲_俬逩灬. 提交于 2019-12-13 13:04:39
问题 Update: To shorten the question: How to bind a SelectList to a Kendo UI MultiSelect Widget using Razor? Original question: In an ASP.NET MVC 4 Application, I am trying to get the Kendo Multiselect working. I am binding the Multiselect widget to my model/viewmodel but the init values are not being used. Selecting and so works perfectly. Model: public class Data { public IEnumerable<int> SelectedStudents{ get; set; } } public class Student { public int Id { get; set; } public string Name { get;

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 UI Grid .Net MVC - Column editable in Creation only

a 夏天 提交于 2019-12-13 07:26:18
问题 I've been searching how to make a column in a Kendo Grid ASP.Net MVC (Razor) Editable only while we are in creation and not editable while in update. Is there something special that will help me accomplish this task? 回答1: You can bind a custom function to the onEdit event and make that column readonly: @(Html.Kendo().Grid<DemoType>() .Name("grid") .Columns(columns => { /*...*/ }) .Events(events => events .Edit("onEdit") ) ) Javascript: function onEdit(e) { if (e.model.isNew() == false) { //$(