Telerik Forums
Kendo UI for jQuery Forum
1 answer
5.6K+ views
Hello,

I do not want to show decimals. But by default my numerictextbox always shows decimals, when not active! How can i remove those decimals? I just want to see my value without any decimals.

Kind regards,
Jacob
Viktor Tachev
Telerik team
 answered on 31 Dec 2018
4 answers
1.7K+ views

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

 

Steve
Top achievements
Rank 1
 answered on 04 Dec 2018
1 answer
136 views
hello, i am checking to bind css to my kendo numericbox . i want to change the numeric textbox its color to red when its value is 0 . here is DOJO link: https://dojo.telerik.com/EqegiSoJ/2
Preslav
Telerik team
 answered on 03 Dec 2018
5 answers
1.2K+ views

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.

Alex Hajigeorgieva
Telerik team
 answered on 02 Aug 2018
18 answers
1.5K+ views
The spinners may not always be desired on all of the numeric textboxes. Is there an easy way to disable them? If not, could you guys consider adding that feature? Thanks!
Konstantin Dikov
Telerik team
 answered on 20 Jul 2018
2 answers
149 views

Dear admins,

I'm debugging with kendo UI Web and I face an issue, could you please help me answer the reasons.

LanguageespaƱ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.

Viktor Tachev
Telerik team
 answered on 09 Jul 2018
3 answers
1.2K+ views

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

Konstantin Dikov
Telerik team
 answered on 27 Mar 2018
2 answers
298 views

Is there how to round up the value ?

怀ex)怀16.543怀ā†’怀16.55

I can only set rounding or truncation for the "round" option...

kako
Top achievements
Rank 1
 answered on 05 Mar 2018
5 answers
264 views

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 }
        ],
)}

Viktor Tachev
Telerik team
 answered on 11 Jan 2018
1 answer
332 views

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!

Georgi
Telerik team
 answered on 12 Dec 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?