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

[Solved] Formatting Not applied with Ajax binding?

2 Answers 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
scott weinstein
Top achievements
Rank 1
scott weinstein asked on 18 May 2010, 05:44 PM
I have the follwing:

var nfmt = "{0:0,0.0}";
    Html.Telerik()
       .Grid<MyType>()
       .Name("MyType")
       .DataBinding(dataBinding => dataBinding.Ajax().Select("MyTypeAjaxBinding","MyTypeCtrler"))
       .BindTo(Model.MyTypeList)
       .Columns( cols => 
           {
               cols.Bound(ph => ph.Value).Format(nfmt);
           })
.Sortable();
    
The number formatting shows correctly on the first server side rendering, but when I sort, the number format isn't applied.

How can I fix this?

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 18 May 2010, 08:34 PM
Hi scott weinstein,

Currently number formatting is not supported in ajax binding mode. We will implement it for the upcoming Q2 2010 release (due in the beginning of July).

Regards,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Ryan
Top achievements
Rank 1
answered on 13 Dec 2010, 05:09 PM
Sorry to dig up an old thread, but my question is kinda releated.

Was formatting via Ajax ever formatted?  Specifically, do any of the later versions support custom date/time and number formats?
Tags
Grid
Asked by
scott weinstein
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Ryan
Top achievements
Rank 1
Share this question
or