Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > NumericTextBox > Percent EditorTemplate
Telerik MVC Extensions are no longer supported (see this page for reference). In case you have inquiries about Kendo UI Complete for ASP.NET MVC, post them in the pertinent Kendo UI forums.

Not answered Percent EditorTemplate

Feed from this thread
  • Eduardo avatar

    Posted on Jan 23, 2012 (permalink)

    Hi, I've a class with a property set with [DataType("Percent")] attribute, I would expect that the grid show that field formatted (with '%' character, like the currency '$') but it only shows the number. Is this the true funcionality or a bug or I miss something?

    Eduardo.

  • Georgi Tunev Georgi Tunev admin's avatar

    Posted on Jan 25, 2012 (permalink)

    Hello Eduardo,

     Yes, this behavior is expected. If you want to show the percentage symbol, you need to use .Format()
    e.g.
    columns.Bound(p => p.PercentageValue).Width(130).Format("{0:p}");


    Regards,
    Georgi Tunev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > NumericTextBox > Percent EditorTemplate
Related resources for "Percent EditorTemplate"

ASP.NET MVC NumericTextBox Features  |  Documentation  |  Demos  |  Telerik TV ]