kendo-ui

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

故事扮演 提交于 2019-12-02 07:22:02
问题 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")

Kendo grid cancel causing deletion of row

爷,独闯天下 提交于 2019-12-02 07:17:10
问题 I am using kendo grid and the grid.And on a particular situation i am adding data to the datasource of the grid using grid.dataSource.add() method.The following is the configuration of my grid. var itemcodedataSource = new kendo.data.DataSource({ dataType: "json", transport: { read: function(o){ o.success([]); }, create: function(o) { var item = o.data; //assign a unique ID and return the record item.id = len; o.success(item); len++; }, destroy: function(o) { o.success(); }, update: function

kendo chart call out message

非 Y 不嫁゛ 提交于 2019-12-02 06:42:32
问题 I have a kendo line chart which will bind the data from Model as below. Now i would like to show at particular point a call out message saying degradation start at this point dynamically. Can some one help me on this how to acheive this. <div style="overflow:scroll;width:100%"> @if (@Model != null && @Model.XYAxisData != null) { @(Html.Kendo().Chart() .Name("Predictionchart") .Transitions(false) .RenderAs(RenderingMode.Canvas) //.Title(Model.YString + " Vs " + Model.XString + " Relationship")

Kendo Chart category axis fix number of labels

醉酒当歌 提交于 2019-12-02 06:21:26
问题 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 =>

Master-detail kendo ui grid (when select row in master grid get entries in details grid)

浪尽此生 提交于 2019-12-02 06:17:06
I am working with master-details kendo ui grid, which is separated. Master grid is located within tabstrip 1 (tabstrip.select(0)). Fields for add/edit (for master grid) is located within tabstrip 2 (tabstrip.select(1)) in top page. In tabstrip 2 I have nested tabstrips for details grid (in middle-bottom page). Details grid is located within nested tabstrip 1 (tabstripNested.select(0)) and fields for add/edit is located within nested tabstrip 2 (tabstripNested.select(1)). What I want? I want that when I select some row in master grid that display appropriate entries in details grid. This is my

Kendo Grid: how to get the selected item from a Combobox cell template when using with Angular

送分小仙女□ 提交于 2019-12-02 06:05:17
I have a Kendo grid which I am using within Angular, and have a field with a combo box, that has the editor set to the following function... function comboCellTemplate(container, options) { var input = $('<input name="' + options.field + '" />') input.appendTo(container) var combobox = input.kendoComboBox({ autoBind: true, filter: "contains", placeholder: "select...", suggest: true, dataTextField: "description", dataValueField: "code", dataSource: data, }); And data is a list of simple json objects... [ {code: 'code1', description: 'desc1'} {code: 'code2', description: 'desc2'} [ Each field in

Kendo datepicker acting weired for different computers on two different timezone

牧云@^-^@ 提交于 2019-12-02 05:46:19
Hi we use a simple kendo datepicker for our web application. $("#DateInput").kendoDatePicker({ format: "dd/MM/yyyy", culture: "en-GB", max: new Date() }); Now when we try to get the datepicker value in Javascript my browser gives me date format dd/MM/yyyy but my colleague's browser gives him MM/dd/yyyy . We have tried to use same culture as you can see in kendo and as well as in our web.config we have put the globalization settings as follows. <system.web> <globalization uiCulture="en-GB" culture="en-GB" /> </system.web> My computer's date format and settings are as follows; Region & Language

Kendo UI Grid posting back already Inserted Rows again

淺唱寂寞╮ 提交于 2019-12-02 05:45:20
问题 I am running into problem, where when an Insert is completed successfully and if i continue to insert another row, in the next insert it is also sending the row that was inserted successfully earlier, so it goes like this. On the First insert that row is posted back to webAPI and inserted successfully. On Next Insert Two rows are sent one of them was from first step. On third Insert it send previous two rows as well as third row and so on. What could be the cause of this ? This is the Code in

Unable to get a change event handler function to work on a file upload widget

我的未来我决定 提交于 2019-12-02 05:20:31
I am trying to get a function to fire on the "change" event of a file upload field. I could get it to work in another file, but not in this one. I placed debugger code inside the function change listener to check whether it's going inside that but it's not going inside that function. There are no errors in the console. My code, as well as a link to a fiddle, are provided below: https://jsfiddle.net/rb9L0qaf/ <label class="fileContainer dragAndDropHolder" > {{dragDrop}} <input type="file" id="attachKickBrowseSim" [class.disabled]="isFingersLocked" (change)="changeListener($event)" /> </label>  

Issue with serializing data using JSON.Net

有些话、适合烂在心里 提交于 2019-12-02 04:41:39
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 = new ViewModels.Events.EventViewModel(); q.Id = 1; q.Title = "This is a test"; q.Start = DateTime.Now;