kendo-ui

Kendo UI Excel export, generating multiple files, not refreshed properly?

本秂侑毒 提交于 2021-01-28 04:27:37
问题 I have a single page app, that often creates new data from an array var searchData = new kendo.data.DataSource({data: buildData}); and then displays it in a grid, this all looks good except the excel export missbehaves as follows: run one search and the excel export works fine. run a second search and the excel export downloads 2 files, the first being a repeat of the results of the first search, the second file being the new search. run a third search and the excel exports three files....

Use css to add asterisk * to required fields and clear it when not needed

北城余情 提交于 2021-01-27 13:12:20
问题 I have an app that has gazillions of fields where some are are 'required' and some aren't and doing it using jQuery seems performance intensive. So I tried doing it using css but to no avail. So I have turned here to Stack Overflow! :) Let me put the code and try to explain what I want to achieve.This is from a Kendo UI for MVC wrapper, so it has some Kendo classes but it shouldn't change anything. This is what the wrapper code looks like when the page is first loaded (in the Chrome debug

how to set min date for kendo datetime picker

北慕城南 提交于 2021-01-27 05:16:11
问题 Hi I've a kendo template and that template contains a textbox like below with datetime picker. <script id="popup_editor" type="text/x-kendo-template"> <input data-role="datepicker" data-bind="value: datePickerValue" /> </script> Now I want to set min value for this. i.e I dont want to permit to select previous days than today. Any example? 回答1: Try this var myDatePicker = $("#myDatePicker").kendoDatePicker().data("kendoDatePicker"); var today = new Date(); var day = today.getDate(); var month

iterate through all dataItems (all kendo ui treeview nodes)

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-07 02:42:26
问题 I am trying to simply loop through all my nodes in a kendo ui treeview. Current GetNodes() is returning not a function.. how can I access that list? I have also tried .get_allNodes(); - tree is accurate, just don't where to iterate trough current nodes. let tv = $("#tree").data("kendoTreeView"); let nodes = tv.GetNodes(); console.log(nodes); for (var i = 0; i < nodes.length; i++) { if (nodes[i].get_nodes() != null) { console.log(nodes[i]); let item = tv.dataItem(nodes[i]); console.log(item);

iterate through all dataItems (all kendo ui treeview nodes)

心不动则不痛 提交于 2021-01-07 02:42:08
问题 I am trying to simply loop through all my nodes in a kendo ui treeview. Current GetNodes() is returning not a function.. how can I access that list? I have also tried .get_allNodes(); - tree is accurate, just don't where to iterate trough current nodes. let tv = $("#tree").data("kendoTreeView"); let nodes = tv.GetNodes(); console.log(nodes); for (var i = 0; i < nodes.length; i++) { if (nodes[i].get_nodes() != null) { console.log(nodes[i]); let item = tv.dataItem(nodes[i]); console.log(item);

How to set default value in Kendo DropDownList

ぐ巨炮叔叔 提交于 2020-12-30 06:59:12
问题 I have a Kendo DropDownList, but strangely enough I can not set its initial value. Html.Kendo().DropDownList() .Name("PersonalCoachName") .BindTo(new SelectList((List<string>)ViewData["coachResources"])) .HtmlAttributes(new { style = "font-size:8pt;" }) ViewData["coachResources"] is a List of string type. Regardless I use .BindTo(new SelectList((List<string>)ViewData["coachResources"], "Default")) or .SelectedIndex(3) DropDownList does not change it value and only display the 1st value in the

How to set default value in Kendo DropDownList

爷,独闯天下 提交于 2020-12-30 06:59:06
问题 I have a Kendo DropDownList, but strangely enough I can not set its initial value. Html.Kendo().DropDownList() .Name("PersonalCoachName") .BindTo(new SelectList((List<string>)ViewData["coachResources"])) .HtmlAttributes(new { style = "font-size:8pt;" }) ViewData["coachResources"] is a List of string type. Regardless I use .BindTo(new SelectList((List<string>)ViewData["coachResources"], "Default")) or .SelectedIndex(3) DropDownList does not change it value and only display the 1st value in the

Kendo UI Grid - Where to look for fonts and icons

亡梦爱人 提交于 2020-12-12 11:32:25
问题 I'm in the early stages of learning Kendo UI. I've got the grid work and loading data but none of the images/icons that should appear in the grid are appearing. When I load the page containing the grid, I get the following 404 errors. The error message doesn't tell me where it's expecting to find these files. Where is Kendo UI looking for these files? Or, can I tell Kendo where to look for them? I currently have the files located here in my MVC folder structure, but it's not finding them: 回答1