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

Decimal format not working in Gid

1 Answer 285 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sp
Top achievements
Rank 1
Veteran
Sp asked on 13 Aug 2020, 10:46 AM

Hi Team ,

Good Day!!

I am not able to set decimal restriction in grid columns , i need your support to get it. ( need to restrict one decimal  tried Format("{0:n1}")  , "{0:0.#}")

 

I have tried different format types , but not able to successes . Below is the code which i using in my application.

  c.Group(p => p.Title((string)ViewBag.Month01)
                                            .Columns(f => f.Bound(fo => fo.month01FD).Format("{0:n1}") .Width(colWidthFD).ClientFooterTemplate("#=getTotals('month01FD',false)# ").HtmlAttributes(new { @class = "telerik-edit-cell-inline" }))
                                            .Columns(f => f.Bound(fo => fo.month01AC).Format("{0:n1}") .Width(colWithAC).ClientFooterTemplate("#=getTotals('month01AC',true)#").HtmlAttributes(new { @class = "telerik-edit-cell-inline" })));

 

Waiting for your response.

 

Thank you!!

1 Answer, 1 is accepted

Sort by
0
Petar
Telerik team
answered on 17 Aug 2020, 08:36 AM

Hi Sp,

This post is a duplicate of this one: https://www.telerik.com/forums/decimal-format-not-working-in-gid

I've answered you in the other post, before reading that you've tried the formatting that I've suggested to you in the other thread. However, to keep the communication consistent, I would like to ask you to continue the communication in the other thread. If the suggested approach doesn't resolve your issue, I will need the version of UI for ASP.NET MVC used in your application. 

I will now close the current thread. Looking forward to your reply in the other post.

Regards,
Petar
Progress Telerik

Tags
Grid
Asked by
Sp
Top achievements
Rank 1
Veteran
Answers by
Petar
Telerik team
Share this question
or