kendo-ui

Kendo UI Grid not showing JSON data

无人久伴 提交于 2019-12-08 09:41:55
问题 I am facing this problem for quite a while now with the problem that I am unable to bind JSON data that my controller action is passing to the kendo UI Grid, there were few JavaScript issues before but now they are gone but still my grid is not showing any results: In Model : public object GetResult(string id) { var sqlCom = new SqlCommand("SELECT [No],[Desc],[Date],[Height],[Final] FROM [cr_form] WHERE [uId]=@id;", sqlConn); sqlCom.Parameters.AddWithValue("@id", id); StringBuilder sb = new

Kendo UI Tab- Reload tab every time it is clicked

一世执手 提交于 2019-12-08 08:29:58
问题 I have a kendo UI tab, and each tab is binding to an Ajax function. I want my tab to fire ajax call to get fresh content every time the tab is changed, not just the first time. Is there a configuration or recommended way that I can achieve this? 回答1: Hello this could be easily through the reload method of the TabStrip. var ts = $(tabstrip).data().kendoTabStrip ts.tabGroup.on('click','li',function(e){ ts.reload($(this)); }) 来源: https://stackoverflow.com/questions/16067258/kendo-ui-tab-reload

Kendo UI Window on grid button click does not open second time

谁都会走 提交于 2019-12-08 08:03:33
问题 im working on an MVC Kendo Ui project and i'm having the following problem: I have an editable kendo grid with a custom edit button wich opens a partial view on a kendo window wich acts like an "editor template". This seems to work fine first time but if i close the window and try to edit another item or even the same just does not work. I think that when i close the window this eliminate the elemment from the DOM but can't figure it out how to fix it. Here is some code: @(Html.Kendo().Grid

KendoUI: Adding Grid Aggregates with HTML Helper in MVC4

陌路散爱 提交于 2019-12-08 07:59:40
问题 I am trying to add a sum aggregate in the HTML helper for the grid, but am not sure how to add it for the Total field in this example. This is my simple example: @(Html.Kendo().Grid(Model).Name("Grid") .Pageable() .Sortable() .Scrollable() .Filterable() .Columns(columns => { columns.Bound(p => p.FirstName); columns.Bound(p => p.LastName); columns.Bound(p => p.Email); columns.Bound(p => p.Total).ClientFooterTemplate("Sum: $#= sum #"); }) .DataSource(dataSource => dataSource .Ajax() .Read(read

kendo local and remote datasource

纵然是瞬间 提交于 2019-12-08 07:37:12
问题 I am integrating with the spotfire web player, when I select rows I can trap the event and send the rows to my datasource, however, when I save I'd like to call a service. Is there a way to combine local data source and remote? Thank you. 回答1: What do you mean by combine local data and remote? Variant 1 : You can use dataSource.data - to set the initial records used. And define separate transport that will be used for future requests (after the initial one) Variant 2 : You can define the

date changes on export kendoGrid

自古美人都是妖i 提交于 2019-12-08 07:31:20
问题 I have this table made with kendoUI, When user export the table to excel, all dates values change, the issue appears only in chrome, firefox works fine. You can try the runnable on this link var localData=[ {cliente:'COMERCIALIZACION',lote:1323,calidad:'PRIMERAS',fecha:'2017-07-07',sacos:10}, {cliente:'COMERCIALIZACION',lote:1324,calidad:'PRIMERAS',fecha:'2017-07-07',sacos:80},{cliente:'COMERCIALIZACION',lote:1325,calidad:'PRIMERAS',fecha:'2017-07-07',sacos:29}, {cliente:'COMERCIALIZACION'

I'm trying to select and item from a dropdown kendolistbox in IE with Excel Vba

时光怂恿深爱的人放手 提交于 2019-12-08 07:26:52
问题 I found a solution to choosing a fixed selection from a dropdown list. Now all I have to do is figure out how to choose an item based on the choices . The following chooses the first item in the dropdown, however, I found out that making the dropdown "open" is not necessary. Changing the select parameter to 2 chooses the second item in the list etc. I suppose trying to use getElementById and cycling through the innerText may be the way to go, since I don't know any other way. ie.Document

Kendo ui Multi Select Remove Selected element using value

余生长醉 提交于 2019-12-08 07:18:53
问题 I am using kendo ui multiple select http://demos.kendoui.com/web/multiselect/events.html i have this code var data = [ { text: "Africa", value: "1" }, { text: "Europe", value: "2" }, { text: "Asia", value: "3" }, { text: "North America", value: "4" }, { text: "South America", value: "5" }, { text: "Antarctica", value: "6" }, { text: "Australia", value: "7" } ]; var multi = $("#select").kendoMultiSelect({ dataTextField: "text", dataValueField: "value", dataSource: data }).data(

Setting focus on first field of a pop up edit form in kendo grid

与世无争的帅哥 提交于 2019-12-08 06:45:53
问题 I have a kendo grid in pop up edit mode. First field of the pop up form is auto complete widget. I want to give focus on it whenever the pop up form pops up. I tried to do this in different way as $("#grid").kendoGrid({ editor: function(container, options) { $('<input id="item_code_focus" name="' + options.field + '"/>') .appendTo(container) .kendoAutoComplete({ ----- ----- }).focus() } }); But it is not working. Please help me?... 回答1: You could try and use the edit event of the Grid. edit

How can i remove the expand arrow in kendo ui treeview if there are no child's to display

纵饮孤独 提交于 2019-12-08 06:45:38
问题 I am using kendo ui treeview. I am loading the treeview dynamically from the database. But my issue is i am getting the expand error if there are no child's to display. How can i remove the expand arrow. Regards, Sri 回答1: There is a configuration field of the HierarchicalDataSource schema.model object called hasChildren you can add a boolean property to your model which indicates if the your model has items. This way when the TreeView creates its elements it will check that property (or call