Set Data field default values for Item Insert / Edit

3 posts, 0 answers
  1. Paul J
    Paul J avatar
    101 posts
    Member since:
    Nov 2008

    Posted 03 Jun 2011 Link to this post

    I've got a ListView bound to a Linq data source. I've got both edit and insert templates. I only allow the user to edit two of the fields. the rest of the fields (i.e. update by user id, udpated datetime, created date time, etc.) I want the system to set. On what event of the ListView can I set the additional fields before the item is updated / inserted into the database? And coulde you show me an example?

    Thanks!
  2. Paul J
    Paul J avatar
    101 posts
    Member since:
    Nov 2008

    Posted 08 Jun 2011 Link to this post

    Since this has gone unanswered for over 5 days, I'm opening a support request.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 09 Jun 2011 Link to this post

    Hello Paul,

    You can use the ShowInsertItem() method of the RadListView to achieve your goal. As a parameter you can pass it an IDictionary containing the predefined insert values.

    Greetings,
    Iana
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top