HI All,
A custom request got me spinning and wondering if any of you came across it and have a solution for me.
A NumericTextBox in the a grid column.
1. Show the exact value keyed in by the user.
Eg. 12.12345, 23.55, 76.590
2. Value could have decimal precision up to 5 places
3. If the user enter 1.1, it should display 1.10. (showing 1 trailing 0 in the case)
I have solution to 1 and 2, but not 3.
I tried using template: "#=kendo.toString(OrderQuantity,'n2')#" for the column, It will show 2 decimal places like I wanted, but it's rounded and not what the user entered.
TIA
I made an example that use NumerticTextbox and the Min/Max value can be changed if the button "Change Min/Max" clicked
Please see my example at http://dojo.telerik.com/ufeyU
Explain:
when the button was clicked, i expected that the validation range will be changed, but it s not.
Question:
Is it possible to use NumericTextBox to validate a range that can be changed on the fly.
Dear admins,
I'm debugging with kendo UI Web and I face an issue, could you please help me answer the reasons.
Language: espaƱol
Case 1: kendo.toString(1.1, "N1"); --> Result: 1.1
Case 2: kendo.toString(12.12, "N2"); --> Result: 12.12
Case 3: kendo.toString(123.123, "N3"); --> Result: ,123.123 --> I don't know why the result is ",123.123".
Case 4: kendo.toString(1234.1234, "N4"); --> Result: 1234.1234
Thanks.
Hi.
I change the type of the input element to "number" from "text" because I want to display a numeric input keyboard with a smart device.
However, I noticed that I can not enter negative values more than 10 digits from the PC keyboard..
Can I enter a negative value?
https://dojo.telerik.com/ACAquqIL
Is there how to round up the value ?
ćex)ć16.543ćāć16.55
I can only set rounding or truncation for the "round" option...
need to show google icons into gantt chart column according to the status of task. Here is my code!
var tasksDataSource = new kendo.data.GanttDataSource({
data:DS,
schema: {
model: {
id: "id",
fields: {
sr: { from: "sr", type: "number" },
id: { from: "id", type: "string" },
runtimes: { from: "runtimes"},
parentId: { from: "parentId", type: "string", defaultValue: null, validation: { required: true } },
start: { from: "start", type: "date", format: "{0:MM/dd/yyyy}" },
end: { from: "end", type: "date", format: "{0:MM/dd/yyyy}" },
diff: { from:"diff", type: "string" },
title: { from: "title", defaultValue: "", type: "string" },
summary: { from: "summary", type: "boolean" },
expanded: { from: "expanded", type: "boolean", defaultValue: true }
},
computedRuntimes: function() {
if (this.runtimes == JSON.stringify({"included":true,"pending":true,"executed":false}) ) {
//return relevent image
}
if (this.runtimes == JSON.stringify({"included":true,"pending":true,"executed":true}) ) {
//return relevent image
}
if (this.runtimes == JSON.stringify({"included":false,"pending":false,"executed":true}) ) {
//return relevent image
}
if (this.runtimes == JSON.stringify({"included":true,"pending":false,"executed":true}) ) {
//return relevent image
}
}
},
}
});
var gantt = $("#gantt").kendoGantt({
dataSource: tasksDataSource,
dependencies: dependenciesDataSource,
columns: [
{ field: "sr", title:"Sr.#", width: 60 },
{ field: "id", title: "Task ID", width: 100 },
{ field: "computedRuntimes()", title: "Status", width: 65},
{ field: "title", title: "Title", editable: true, sortable: true },
// { field: "start", title: "Start Time", format: "{0:MM/dd/yyyy}", width: 120, editable: true, sortable: true },
// { field: "end", title: "End Time", format: "{0:MM/dd/yyyy}", width: 120, editable: true, sortable: true },
{ field: "diff", title: "Duration", width: 80 },
{ field: "resources", title: "Assigned Resources", editable: true }
],
)}
Is there a way I can bind to the click event of the control? Doing the following somewhat works, but requires a double click. It seems the first click is being silenced or aborted by the control internally.
this.$el.find(".textbox-debit").click(function() {
console.log("hi!");
});
this.numDebit = this.$el.find(".textbox-debit").kendoNumericTextBox({
format: "c"
}).data("kendoNumericTextBox");
Thank you!