Set Default Insert Values in Batch Mode

2 posts, 0 answers
  1. Puja
    Puja avatar
    5 posts
    Member since:
    Jan 2018

    Posted 30 Aug 2018 Link to this post


    I had a RadGrid with EditMode as InPlace which was working properly.Now I am trying to change it to Batch Mode.
    The issue is with the click of Add New Button  I need to set the default values which are populated from database .
    Previously when the Grid was in InPlace mode the ItemCommand used to do that work with the command name InitInsertCommand but with Batch EditMode this don't seem to work.
    Please tell me how to achieve this

  2. Marin Bratanov
    Marin Bratanov avatar
    5897 posts

    Posted 01 Sep 2018 Link to this post

    Hi Puja,

    It is important to note that the batch editing happens entirely on the client, so a value in the editor cannot be set from the server and a call to the database cannot be made. The purpose of the batch editing is to:

    • make editing for the user quick by moving the same set of editor controls in each row/cell they are needed
    • sending updates/inserts/deletions at one go to the server

    With this in mind, pre-selecting values for the users is something that should usually be handled through useful validation messages:

    That said, the following code library example shows one way to do this, yet it is not something we support:

    Marin Bratanov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top