Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET MVC > General Discussions > format lost during paging

Not answered format lost during paging

Feed from this thread
  • Jeroen avatar

    Posted on Jan 30, 2012 (permalink)

    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?

    Reply

  • Jeroen avatar

    Posted on Jan 31, 2012 (permalink)

    Is there a way I could fix this?

    Reply

  • Daniel Daniel admin's avatar

    Posted on Feb 1, 2012 (permalink)

    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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET MVC > General Discussions > format lost during paging