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

Editor for Currency field

2 Answers 271 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 07 Aug 2019, 07:36 PM

Your demo shows how an inline and popup editor works for a currency field:

https://demos.telerik.com/aspnet-mvc/grid/editing-inline

I can't tell from your demo how you are presenting the edit input box.   In particular, the edit field shows with a $ and limits the user to entering digits and a decimal.

Are you applying specific attributes to the model?   The model.cs is not included in the demo.   

Thanks

Peter

2 Answers, 1 is accepted

Sort by
0
Peter
Top achievements
Rank 1
answered on 08 Aug 2019, 11:17 AM

I downloaded the demos, it was a combination of Shared\EditorTemplates and property attribute.

The demo on your web doesn't mention either.

 

0
Viktor Tachev
Telerik team
answered on 09 Aug 2019, 08:42 AM

Hi Peter,

 

Thank you for the feedback. Description about the currency editor is not included in the example as this is a feature specific to the framework and not the Grid widget. Nevertheless, we will consider including additional information in our resources.

With that said, if you would like more information on how custom editors can be used for bound properties you would find the article below interesting.

https://docs.telerik.com/aspnet-mvc/helpers/grid/templating/editor-templates#create-custom-editors-for-bound-properties

 

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.
Tags
Grid
Asked by
Peter
Top achievements
Rank 1
Answers by
Peter
Top achievements
Rank 1
Viktor Tachev
Telerik team
Share this question
or