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

format lost during paging

2 Answers 43 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jeroen
Top achievements
Rank 1
Jeroen asked on 30 Jan 2012, 11:17 AM
Have searched the forum for some answers to this, but can't seem to find it. I have a grid that renders perfect the first time round and I am mainly talking about a cel with a timespan that shows the seconds with .Format("{0:ss}") and a column with a boolean value that either lets a cell turn green or red depending on its value by using CellAction.

When I use paging on this tho it loses all this formatting. I can imagine I have to call a clientside command to force it to format it again, but don't know how. Any ideas?

2 Answers, 1 is accepted

Sort by
0
Jeroen
Top achievements
Rank 1
answered on 31 Jan 2012, 11:55 AM
Is there a way I could fix this?
0
Daniel
Telerik team
answered on 01 Feb 2012, 09:27 AM
Hello Jeroen,

If you are using Ajax Binding, you should use either the column's ClientTemplate method or the OnRowDataBound client-side event to apply custom format to the cells.

Regards,
Daniel
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
Tags
General Discussions
Asked by
Jeroen
Top achievements
Rank 1
Answers by
Jeroen
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or