Questions tagged [displayformat]
35 questions
39
votes
5 answers
Overriding "Variables not shown" in dplyr, to display all columns from df
When I have a column in a local data frame, sometimes I get the message Variables not shown such as this (ridiculous) example just needed enough columns.
library(dplyr)
library(ggplot2) # for movies
movies %.%
group_by(year) %.%
…

Hugh
- 15,521
- 12
- 57
- 100
11
votes
3 answers
DisplayFormat not getting applied on decimal value
I have a model property I'm trying to render using an EditorFor template, and I'm trying to apply formatting using the DisplayFormat attribute. However, it's not working at all -- it's totally being ignored.
Here is my template:
@model…

Jerad Rose
- 15,235
- 18
- 82
- 153
4
votes
2 answers
DataAnnotation to display month name
How to display the full month name and year in DataFormatString?(November-2014)
I tried using this DataAnnotation,but it does not give me the desired o/p:
[DisplayFormat(DataFormatString="0:MMMM-yyyy")]

Sumedha Vangury
- 643
- 2
- 17
- 43
3
votes
2 answers
Use DisplayFormat to show 3 decimal places
I am a newbie to .NET. I cannot figure out the correct syntax to show three decimal places in my view.
In my model I currently have:
<
Public Property StraighRate() As Decimal
Get
Return mStraightRate
…

user2816567
- 43
- 1
- 1
- 5
3
votes
2 answers
Model Class DisplayFormat() How can I localization NullDisplayText?
public class Board
{
[Display(ResourceType=(typeof(MVC.Resources.Board)), Name="TEST")]
[DisplayFormat(NullDisplayText="")]
public int? ItemId { get; set; }
public string Title { get; set; }
public string Contents { get; set; }
…

user3444535
- 233
- 1
- 2
- 12
3
votes
1 answer
displayformatattribute to custom format a string
I want to be able to mark properties in my viewmodel to be formatted using a custom format when displayed in my MVC view.
I assume I need my own displayformatattribute and set the displayformat but I am not sure how to set this displayformat or…

user2047485
- 391
- 5
- 20
1
vote
1 answer
ChartJS v3 custom displayFormats
I'm trying to add a string (Week) next to the week number in xAxes in Chartjs 3. But it shows a random number instead of the string.
Here is the part of my code in the options:
scales: {
x: {
type: 'time',
…

Richo
- 33
- 5
1
vote
1 answer
DataFormatString = "{0:N}" not working on Model MVC
I want points and commas on milles for numbers type 'int' in function of CurrentCulture. I'm trying to use DataFormtString but its not working.
For example: 1234567 ==> 123.456.789
I'm working with MVC and i want to format numbers in tables, inputs,…

Arturo
- 39
- 10
1
vote
1 answer
Table (or CDS) Field DisplayFormat
When adding persistent fields of a dataset using the Fields Editor, the field names are concatenated to the dataset as TableMyField, I can then access the persistent field's DisplayFormat property in my code as:
TableMyField.DisplayFormat
However,…

Aorangi
- 31
- 7
1
vote
1 answer
Wrong currency unit in Kendo
In my website I use the Kendo-grid.
In that grid, there is a column "Amount" with these values:
You see that there are dollar-signs before the amounts, but I want euro-signs.
The globalization-culture settings are correct, because when I show an…

ceuben
- 319
- 1
- 4
- 17
1
vote
0 answers
Json Error With [DisplayFormat(ConvertEmptyStringToNull = false)]
I Write a mvc5 project in vs2013
A method in controller returns json
public JsonResult QueryConcens(ConcentratorView concenForQuery)
{
QueryConcentratorsRequest request = new QueryConcentratorsRequest() { ConcenQuery = concenForQuery };
…

Qiang
- 11
- 4
1
vote
1 answer
How to format string property in MVC model class to be used in DisplayFor
Okay, I have been looking for a resolution for this simple task all day.
I have an mvc model class which has a BIC property and a NationalNumber property. Bother are string values.
I want to use a DisplayFor helper to render the property on the view…

stvn
- 1,148
- 1
- 8
- 24
1
vote
2 answers
Respecting DisplayFormat in custom DateTime template
I would like to create a custom template for displaying properties of the type DateTime while still being able to define the format using the DisplayFormat decoration in the class.
Let's say I want to surround every date with >> and << using a…

Christopher
- 2,005
- 3
- 24
- 50
0
votes
1 answer
How to display ID-Description in Grid Field in Acumatica
In Acumatica How to display ID-Description format for Selector Field in Grid?

Giribabu Kandukuri
- 11
- 1
0
votes
1 answer
DisplayFormat is not working on computed property in EF Core
I have this computed property in my class called 'ProcessingTime', which is calculated based on other properties.
[Display(Name = "Processing Time (BD)")]
[DisplayFormat(DataFormatString = "{0:G0} business days")]
[NotMapped]
public int?…

vlatro
- 21
- 1
- 5