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

Grid popup editor

1 Answer 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 29 Mar 2018, 05:22 PM

Hello,

The default popup editor is not displaying the datatype currency with a dollar sign:

.ToolBar(toolbar =>
{toolbar.Create().Text("Add New Line");})
.Editable(editable => editable.Mode(GridEditMode.PopUp))

Here is my model:

[DataType(DataType.Currency)]       
public decimal GiftAmount{ get; set; }      
[DataType(DataType.Currency)]      
public decimal SecondGiftAmount{ get; set; }

 

The form itself is offset a little as well. The labels are a few pixels above the text boxes. Can I get some help?

Paul

 

 

 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 03 Apr 2018, 05:37 AM
Hello, Paul,

Thank you for the details.

I can assume that  there is a small missing detail as the same approach is working in our demo:

https://demos.telerik.com/aspnet-core/grid/editing-popup

Model:

[Display(Name = "Unit price")]
[DataType(DataType.Currency)]
[Range(0, int.MaxValue)]
public decimal UnitPrice
{
    get;
    set;
}


Could you please provide an example as the issue could be caused by a custom factor which we are overlooking at this moment. This will also help to inspect the styling issue.

Thank you in advance for the cooperation.

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Paul
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or