Hi guys,
So, I'm developing a timesheets functionality for our product.
For the week view I have a grid and a model bound to it with some ids for project/client/item/etc. and each of the seven days of the week as decimals.
This works great when entering the time as decimal values, eg: 2.5 or 1.15. I use a clientTemplate to format it and display it as 02:30 or 1:09.
So far so good. Now comes the requirement that we want to be able to also input time as 2:30 or 1:09. The problem is the input box does not allow me to input the ":" sign. My workaround was to use string instead of decimal in the model for days. Got that to work nicely but now the sum aggreggates don't work anymore.
Since I know we cannot have custom aggreggates my question is: how can I sort this issue? I would prefer to have the model as decimal and a way to also input time as 00:00 since I can split them apart and make a decimal out of it to fit the model.
Thank you for your time.
Kind regards,
Mircea D.
I use this to validate required fields on post
var validator = $("#caseForm").kendoValidator().data("kendoValidator"); var isvalid = validator.validate(); if (isvalid) {post..}and it works fine if field is required but if its a mask with wrong entry it doesnt work.
Do you have some sample where the mask is checked on post?
I'm using Kendo().DropDownList() with OptionLabel configured.
When trying to get selected item Text / Value, I'm getting incorrect values.
for example if I choose the first drop down option I'm getting the value of the option label.
if I choose the second option I'm getting the values of the first option.
@(Html.Kendo().DropDownList()
.Name("SelectedSubjectId")
.DataTextField("Text")
.DataValueField("Value")
.Filter("contains")
.OptionLabel("Select Subject")
.BindTo(Model.MailSubjectList)
.Events(events =>
{
events.Select("onSelect");
})
)
Javascript:
onSelect = function (e) {
var dataItem = this.dataItem(e.item.index());
// or even
var selectedValue = this.value()
var selectedText = this.text()
};
How can I get the correct selected value (Text / Value) ?
Thank you.
To avoid sending thousands of records back to my control, I have set the minlength equal to 2. This has been working without issue until I upgraded Kendo UI from a 2014 version to the latest 2015 version. The filtering and control works but the first time you type to start filtering and you reach your minlength, the dropdown appears(as expected with the filtered data) but the text that was typed in the combobox gets erased. When you continue typing, no additional filtering happens until you reach the minlength, at which point the control behaves correctly. The only way for the problem to reoccur in that control again is to reload the page.
I have several pages that use this control. All of them now have this behavior but worked fine before the upgrade.
Thanks,
Scott Marcus
Let' s say, there a mvc grid with a dropdown list inside it. The grid has three mode; view edit and add modes, in other words users are able to view, edit, and add records.
The data source of this dropdown list changes dynamically depending on the modes; for example,
if in view mode, the ddl lists item1, item2, item3 item4, and item5,
if in Add mode, the ddl lists item2, item3.
if in Edit mode, the ddl lists item2, item5,
That means the ddl source from different linq queries depending on grid modes.
Is it possible to achieve it? Thanks
Hi
I am using a customized response for the grid which contains the default "data" JSON in a property, such as:
{
"success": true,
"result": {
"data": [
{
"srtOrder": 60,
"id": 1
},
{
"srtOrder": 70,
"id": 1
},
{
"srtOrder": 30,
"id": 5
}
],
"total": 96,
"aggregateResults": null,
"errors": null
},
"error": null,
"unAuthorizedRequest": false
}
So the grid should use the data from the "result" property.
How can I define this using the MVC version of the grid?
My model which is attached to the grid matches the "data" property.
Hi,
I am bind the kendo grid @ Client side. Any idea of how to show the destroy delete command based on other column status? Appreciate your help on this.
Thanks,
Edwin
Hello,
I am having three tree views named role, responsibility, function . I can able to drag and drop a function to responsibility and responsibility to role.
Step 1: I have dragged a responsibility over the role node and the dropped responsibility has been added in the role
Step 2: I dragged a function and dropped over the responsibility.
Step 3: After the dropped function on responsibility, the role also refreshing with the function which we don't want. How to restrict
this functionality.
Thanks and Regards,
Dharma