Show short date, edit full date with batch editing

Thread is closed for posting
1 posts, 0 answers
  1. D41B02FE-0EF9-48A6-9B2C-E910424294F5
    D41B02FE-0EF9-48A6-9B2C-E910424294F5 avatar
    23 posts
    Member since:
    Jul 2012

    Posted 27 Dec 2017 Link to this post


    Telerik Product and Version

    UI for ASP.NET AJAX, supporting Batch Edit Mode for RadGrid

    Supported Browsers and Platforms

    All browsers supported by Telerik UI for ASP .NET AJAX

    Components/Widgets used (JS frameworks, etc.)

    JavaScript, C#


    This is an example that shows how you can use complex data and objects in a Template Column. This is an example similar to the Working with Templates

    In this example, we will show one date to the user in a short format, but we will let them edit the full date, including the time portion. When we save the data to the server, we will still have the full date.

    Note that working with dates like this requires parsing them through strings and JavaScript. Thus, you must ensure proper parsing and formatting according to your needs.

    A sample is attached below. Comments in the code offer further details.

Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.