kendo-listview

KendoUI - ListView - How to show dynamic controls at runtime in edit template

你说的曾经没有我的故事 提交于 2020-01-05 04:47:12
问题 Related to this question, I want to achieve the same behavior inside ListView instead of a kendo Grid. My attempt is here. The edit template switches to different controls based on the value in the model at the beginning of the edit. But the problem is that I can't find a way to switch the 2nd field based on the user selection in the first field. Also if I change the first field to an 'AutoComplete' list, can I still follow the same pattern? I appreciate any help to solve this. Code: <div

Get the object bound to item in Kendo ListView

天涯浪子 提交于 2019-12-25 04:09:13
问题 I have a kendoListView which is bound to a list of objects having a number of fields. <div id="lstAllItems"></div> <script type="text/x-kendo-tmpl" id="itemTemplate"> <div> <label><input type="checkbox"/>#: Name#</label> </div> </script> <script> var itemsList = [{Name : "ABC", Age : 23, EmpID : 1}, {Name : "PQR", Age : 25, EmpID : 2}, {Name : "XYZ", Age : 23, EmpID : 3} ]; var _dataSource = new kendo.data.DataSource({ data: itemsList }); $("#lstAllItems").kendoListView({ dataSource:

Kendo Template check box not firing click event

爷,独闯天下 提交于 2019-12-10 23:59:07
问题 I have used Kendo Template as follows: <script type="text/javascript" src="@Url.Content("~/Scripts/Module/Analysis/CreateMaintainAnalysis.js")"></script> <script type="text/x-kendo-template" id="Modeltemplate"> <div class="section group fr"> <div class="col span_2_of_12"> #if(ACTIVE_MODELS_COUNT > 0){# <input class="ModelCheckBox" type="checkbox" checked/>#} else {# <input class="ModelCheckBox" type="checkbox" unchecked/> #}# </div> <div class="col span_4_of_12"><label>#:MODEL#</label></div>

Implementing Autocomplete as a hideable listview (demo included)

余生颓废 提交于 2019-12-04 02:06:35
问题 The start page of my application will have a search box, and a list of useful links below the searchbox (favorites etc) When someone types text in the searchbox, I want the favorites to disappear, and only the search results to be visible. I've implemented a proof of concept here using a mobile list view: $("#local-filterable-listview").kendoMobileListView({ dataSource: dataSource, template: $("#mobile-listview-filtering-template").text(), filterable: { field: "ProductName", operator:

Implementing Autocomplete as a hideable listview (demo included)

百般思念 提交于 2019-12-01 12:23:39
The start page of my application will have a search box, and a list of useful links below the searchbox (favorites etc) When someone types text in the searchbox, I want the favorites to disappear, and only the search results to be visible. I've implemented a proof of concept here using a mobile list view: $("#local-filterable-listview").kendoMobileListView({ dataSource: dataSource, template: $("#mobile-listview-filtering-template").text(), filterable: { field: "ProductName", operator: "startswith" }, virtualViewSize: 100, endlessScroll: true }); I'm considering instead of setting the display