kendo-ui

Kendo UI - Grid pagination (server side)

纵饮孤独 提交于 2019-12-20 10:06:15
问题 I'm trying to use Kendo-UI grid with pagination. everything seems to work expect for the Total attribute, although I set it to 100 it shows 1 - 10 of 10 items which the page size i'm setting. Anyone had better success with this? I searched Kendo docs and forums with no success. @(Html.Kendo().Grid(Model) .Name("Grid") .Columns(columns => { foreach (System.Data.DataColumn column in Model.Columns) { columns.Bound(column.ColumnName); } }) .Pageable() .Sortable() .Scrollable() .Filterable()

Kendo datepicker shows two months during animation

拈花ヽ惹草 提交于 2019-12-20 07:13:11
问题 With the Kendo datepicker we are seeing two months stacked on top of each other when we transition months. Has anyone else seen this? It happens in both firefox and chrome. $(".datepicker").kendoDatePicker(); From <input type="text" id="OrderDateFrom" class="datepicker" name="OrderDateFrom" /> As soon as the transition is completed it looks normal again. UPDATE: Kendo UI Web v2013.1.319, Windows 7 OS using latest versions of Firefox, Chrome, IE 9 & 10, JQuery 1.9.1, HTML5, MVC 2. 回答1: The

Updating the custom header of Kendo Scheduler control - dateHeaderTemplate

爱⌒轻易说出口 提交于 2019-12-20 04:53:50
问题 I have written custom header for Kendo Scheduler. Which rendered as below The code used to arrive at above UI is below and worked like charm.(thanks to Dion Dirza), <script id="tmpDateHeader" type="text/x-kendo-template"> <span class="k-nav-day" data-dt="#=kendo.toString(date, 'dd/MM/yyyy')#"> <u>#=kendo.toString(date, "dd/M")#</u> - ({dc}%) </span> </script> $("#scheduler").kendoScheduler({ dateHeaderTemplate: kendo.template($("#tmpDateHeader").html()) } Issue Now, I am UPDATING one of the

Kendo ui picker css issue

試著忘記壹切 提交于 2019-12-20 04:36:09
问题 I am using kendo ui dropdown list and some other pickers. I want to style the selected item background color. I had tried .k-dropdown .k-state-selected{ background-color: red} but the color of selected item is not changing. It is set to default orange only. But the same code is working for grid and list view. How can i able to do that. Regards, Sri 回答1: The following CSS should work for date(time)picker and the dropdownlist: .k-widget .k-state-selected, .k-list .k-state-selected { background:

Issue with serializing data using JSON.Net

冷暖自知 提交于 2019-12-20 04:08:02
问题 I am using a Kendo Scheduler in my app to pull data from my database using a Web Api. I created a Web Api function and just hard coded some data in there to be sure the Kendo Scheduler could read my data. Here is my code for the Api function: [Route("api/v1/Events/GetPersonalEvents", Name = "ApiEventsGetPersonalEvents")] [HttpGet] public DataSourceResult GetPersonalEvents([System.Web.Http.ModelBinding.ModelBinder(typeof(WebApiDataSourceRequestModelBinder))]DataSourceRequest request) { var q =

Kendo calendar selected date event

百般思念 提交于 2019-12-20 03:32:13
问题 Hi I've a kendo calendar and a text box in my page. When I select any date on the calendar, I wanted to show that value in my textbox. (like datetime picker). Any way to get it? Here is my sample code <div id="calendar"></div> <input type="text" name="txtdate" id="txtdate"/> <script> $(document).ready(function() { // create Calendar from div HTML element $("#calendar").kendoCalendar(); }); var cal = $("#calendar").data("kendoCalendar"); cal.bind("change", function () { // Here I wanted to

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() { $("

Add New Record button not working in kendo hierarchical grid

ε祈祈猫儿з 提交于 2019-12-19 09:08:23
问题 I'm trying to add new row to the detail grid of the kendo hierarchical grid, but the Add new record button not working. However if I omit the filter option in detail grid definition, then the button works, but with filtering off, I can't separate the child rows according to the master row. I'm adding an image to describe the problem. Here is my code for the hierarchical grid: var element = $("#grid").kendoGrid({ dataSource: { type: "JSON", transport: { read: { url: "/Home/Read", type: "GET" }

how to pass the ID of the kendo Ui dropdown selected value onto the controller?

北城余情 提交于 2019-12-19 09:06:26
问题 I am trying to create an application where i am using KENDO UI Dropdown. The Problem is i want to update the values from my view into the database . On selection of the any value in the dropdown the ID associated with it should be passed onto the controller for the required database updation. But here the ID for any selection of the dropdown list passes "null" as the value onto the controller . My view @using Kendo.Mvc.UI @model ExamplekendoDropdown.Models.FacilityGroup @{ ViewBag.Title =

Kendo Grid Hiding/Showing Delete button

筅森魡賤 提交于 2019-12-19 07:48:10
问题 I am new on Kendo MVC components as well as on jQuery. I am building Kendo Grid.I would like to hide destroy(delete) command on page load on Kendo grid.After that when I click to button on same page, it should be visible. kendo grid: @(Html.Kendo().Grid<Model>() .Name("grid") .Columns(columns => { columns.Bound(product => product.DESCRIPTION).Title("Description"); columns.Bound(product => product.CODE).Title("Description"); columns.Command(commands => { commands.Destroy().HtmlAttributes(new {