This is a migrated thread and some comments may be shown as answers.

Shown decimals, inline editing

8 Answers 475 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jacob
Top achievements
Rank 1
Jacob asked on 07 Sep 2015, 12:15 PM

Hi,

I have a standard grid with a NumericTextBoxFor field using inline editing in a MVC5 project.

The NumericTextBoxFor is configured to show 5 digits after the decimal separator in both the editor-template and the HTML code.

The problem is, that the 5 digits is only shown if the NumericTextBoxFor is selected when in edit mode or if not in edit mode at all - otherwise only 2 rounded digits is shown.

Any idea ?

I have a proof-of-concept to show, if this is new to you.

Thank you in advance.

8 Answers, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 08 Sep 2015, 01:35 PM
Hi Jacob,

When you configure the format for the editor the corresponding decimal digits should be displayed. Check out the following sample as illustration.


In case the behavior you are seeing persists, please provide your code so we can examine it.

Regards,
Viktor Tachev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Jacob
Top achievements
Rank 1
answered on 09 Sep 2015, 08:10 AM

Hi Viktor,

I have a 8 mb. zip file containing a sample solution, but are not able to upload the file due to some constrains in this website.

Where can I put the file ??

Thanks.

0
Viktor Tachev
Telerik team
answered on 09 Sep 2015, 12:22 PM
Hello Jacob,

You can upload the file to a file sharing service (e.g. Dropbox) and provide the link. Alternatively, you can open a support ticket and attach the archive there.

Regards,
Viktor Tachev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Jacob
Top achievements
Rank 1
answered on 10 Sep 2015, 07:05 AM

Ticket 969162.

Thank you.

0
Viktor Tachev
Telerik team
answered on 10 Sep 2015, 03:13 PM
Hello Jacob,

I have replied in the ticket you have submitted. I suggest we continue the conversation there.

Regards,
Viktor Tachev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Brian
Top achievements
Rank 1
answered on 06 Sep 2019, 08:12 AM
That's nice that you managed to help this guy but what about the rest of us?
I have this situation, can we put the solution code here?
0
Viktor Tachev
Telerik team
answered on 10 Sep 2019, 07:30 AM

Hi Brian,

 

To specify the number of decimals that will be displayed by the NumericTextBox editor you can configure the Decimals and Format option for the editor. It would look similar to this:

 

@(Html.Kendo().NumericTextBoxFor(m => m)      
      .Decimals(5)
      .Format("{0:n5}")
)

 

Regards,
Viktor Tachev
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Brian
Top achievements
Rank 1
answered on 11 Sep 2019, 07:38 AM
Thank you for getting back to me Victor, I actually found the solution in the end anyway but very much appreciate it :)
Tags
Grid
Asked by
Jacob
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Jacob
Top achievements
Rank 1
Brian
Top achievements
Rank 1
Share this question
or