+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / radgrid format textbox in edit mode

radgrid format textbox in edit mode

2 posts, 0 answered
  1. Jeff Brodsky
    Jeff Brodsky avatar
    1 posts
    Registered:
    25 May 2010
    28 May 2010
    Link to this post
    I'm posting here after a few hours of searching this site and the internet with no luck.  Can someone advise if there's a way to format textbox values shown in radgrid edit mode?  The dataformatstring property of the gridbounditem control works well, but once you click edit, all of the formatting is lost.  I'm specifically attempting to format a few currency and date fields.

    Thanks in advance!
  2. Radoslav
    Radoslav avatar
    1 posts
    Registered:
    08 Mar 2017
    31 May 2010
    Link to this post
    Hello Jeff,

    You could try getting the edit item, when the RadGrid is in edit mode and explicitly set the format strings to the TextBox controls from the edit item. Please check out the following online documentation articles which enplanes how to get cells and rows in RadGrid:
    http://www.telerik.com/help/aspnet-ajax/grdaccessingcellsandrows.html

    Additionally I am sending you a simple example which demonstrates the desired functionality. Please check it out and let me know if it helps you.

    I hope this helps.

    Regards,
    Radoslav
    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.
2 posts, 0 answered