Hi,
My requirement is to allow user to upload only one file at a time. But looks like Kendo hasn't got an out of box solution to this. 'Select files..' button is active after user has uploaded a file and it allows further any number of uploads and the same is with drop zone.
It is disappointing that the 'multiple:false' doesn't work if I use the 'upload' event. So I had to do a workaround to this such that user can select only one file.
Now my problem is to disable drop zone after user has uploaded one file. This seems to be very difficult to get it working. so I concluded to disable the drop zone completely as I am happy with the 'Select' button.
In this saga I found this thread http://www.telerik.com/forums/disable-drag-drop#2293863 and tried to use this line 'kendo.ui.Upload.fn._supportsDrop = function() { return false; }' exactly as stated in the thread. But it never worked and resulted with a javascript error on my console window. Please see the attached screenshot for the error and my code snippet.
Please help me how to disable the drop zone completely
PS: I am using this Upload control in an MVC project & using Kendo 2017 version
Code: kendo.toString(1.67)
Expected result: either "1.67" (as appropriate kiven the current kendo culture) or an error indicating that multiple arguments are required
Actual result: returns 1.67 as a number, not a string
It seems odd to me that the toString() function should ever return something other than a string.
___________________________
Context:
My use-case is that I am trying to format a numeric value in a culture-aware way using kendo.
In many cases, I can do this via kendo.toString, for example:
kendo.toString(1.67, "#.##")
However, in this case rather than specifying a custom format I wanted to use the "natural" format (as many decimal places as the number has). In C#, for example, you can get this by calling ToString() on a value of type double. I thought that kendo.toString(number) might have the same behavior, and was surprised when it returned a number back. A workaround for my use-case is to do kendo.toString(number, "#.############"), but the current behavior with one argument seems like a bug that might catch others up in the future.
I was looking at using the Moonlight theme with Kendo UI for Angular, however, I think I've come across an issue with the filtered DropDownList Component.
Using the Moonlight theme the DropDownList search box displays white text on a white background. See screenshot.
Attached are a couple of screenshots of a DropDownList populated with countries. In the first screenshot I have typed any chars in the filter - you can see a big white box but you can't see the magnifying glass icon on the right as it's being displayed in white on a white background. In the second screenshot I've typed some random chars, they're not visible and they don't match any of the country names so the drop down list is empty.
Hi,
We are currently using an old kendo version - 2014.2.716 TreeView control and kendo.data.HierarchicalDataSource. We are making extensive use of data bound and change event on the datasource. When attempting to upgrade we are noticing that the behavior of the change event seems to be different in the latest kendo versions compared to the old version. For example the chan,ge event seems to now be generated for each of the parent nodes of the child node. Is there any documentation describing the changes from the old version and the event behavior in the new kendo version.
Thanks in advance..
I have my html input element designated as a dropdownlist in code below. I have my list of items specified in 'data-source=' where my list of items is an array of string options, which is added to based on what the users picklist values are (dynamically filled picklist). However, I can't seem to get the default value to work. Specifying 'data-option-select' works, and sets the default, however, when I specify that the picklist is required, it doesn't recognize the 'data-option-select' as an actual selection and thinks I still need to select something. If the picklist is not required, it picks up the 'data-option-select' just fine as an option and saves that without me having to go select anything.
How can I specify this dropdownlist as required and set the default value? (I can't really do it in javascript as these picklists are dynamically created. I have no idea how many there are or necessarily what their names will be, so looking for a way to specify selected default in the html markup).
Also, I have tried 'data-select' but I get unexpected identifier (the value was a string with multiple words and white spaces). I tried setting data-select to an integer, but that got some 'charAt(0) is not a function' error. I even tried it with setting data-primitive-value="true" but that didn't do anything.
'<input id="'+fieldMap[i].fieldName+'Input" data-role="dropdownlist" data-bind="value:'+fieldMap[i].fieldName.toLowerCase()+'" data-option-label="'+fieldMap[i].defaultPicklist+'" data-option-select="'+fieldMap[i].defaultPicklist+'" required data-required-msg="Please Select Valid '+fieldMap[i].fieldLabel+'" data-source="[\'None\'';
Does anyone have a suggestion on how to disable certain options in a grid dropdown (using a custom editor template) based on a property of the grid item?
Hello!
Is there a way to hide or disable the Remove button conditionally for some items only?
I want to prevent the user from removing items that were already used on another list, while enabling them to add more or remove the items not inused.
I use the MVC approach:
@(Html.Kendo().MultiSelect()
.Name("SelectedCategories")
.DataValueField("Id")
.DataTextField("Title")
.Placeholder("Select categories...")
.AutoClose(false)
.ValuePrimitive(true)
.ClearButton(false)
.DataSource(ds => ds.Read(read => read.Action("GeCategories", "Category")))
.BindTo("Categories")
)
TIA! :o)
Ross
Ref: http://demos.telerik.com/kendo-ui/grid/editing-custom
My implementation saves [object object] in the databases intermittently. Some times it works other time it doesn't work and then I have re-select the item for it to save right. is there anything to look for here..?
When attempting to find my column template using
var
userActivityTemplate = kendo.template(
this
.columns[9].template);
I am receiving the following error:
Uncaught TypeError: Cannot read property
'template'
of undefined
at init.excelExport (user-task-summary.js:328)
at init.trigger (kendo.all.min.js:25)
at init.<anonymous> (kendo.all.min.js:30)
at Object.proxy (jquery-2.1.4.js:512)
at Object.<anonymous> (jquery-2.1.4.js:3256)
at fire (jquery-2.1.4.js:3099)
at Object.add [as done] (jquery-2.1.4.js:3145)
at Array.<anonymous> (jquery-2.1.4.js:3255)
at Function.each (jquery-2.1.4.js:374)
at Object.<anonymous> (jquery-2.1.4.js:3252)
It appears that when using multiple header rows, the template is not a defined key.
Here is my multiple header column definition
{
title:
"Activity"
,
columns: [
{
field:
"estimatedHours"
,
title:
"Estimated"
},
{
field:
"userActivityMinutes"
,
title:
"User"
,
template:
function
(dataItem) {
return
FormatMinutesToHours(dataItem.userActivityMinutes);
}
},
{
field:
"activityTotalMinutes"
,
title:
"Total"
,
template:
function
(dataItem) {
return
FormatMinutesToHours(dataItem.activityTotalMinutes);
}
}
]
}
attached is the console output with the column definition expanded.
Can you tell me the proper way to locate the template definition in this scenario?
Thank you
We have several views (used for data-visualization) in our web-app. Each view can be opened in a virtual tab, inside our web-app. Every view has a whole bunch of kendo widgets that we can use to manipulate the data. In the end, we can close the virtual tab. At a given time there can be several such tabs opened and the user can open or close more tabs as per his choice.
Data for each virtual tab is loaded through ajax while opening the tab, after which all kendo widgets are 'initialized'. Similiarly when we close the tab, all kendo widgets are destroyed using the 'destroy' method of the widget.
There is a huge performance drop while initializing and destroying the kendo widgets in each tab. Is there a way that the kendo widgets can be destroyed efficiently?