Adding template for the Create New button

3 posts, 1 answers
  1. Nikhil
    Nikhil avatar
    5 posts
    Member since:
    Jan 2013

    Posted 14 Jan 2013 Link to this post

    Hello,

    We are using Kendo grid to show records. We have a requirement of showing a textbox for a column when "Edit" button is clicked. This is working fine (in-built functionality provided by Kendo). However, when the "Create" button is clicked, the very same column needs to be replaced by an '<input type="file"....' so that the user is able to select a file from his machine. Any pointers on this will be really helpful.

    Regards,
    Nikhil
  2. Answer
    Daniel
    Admin
    Daniel avatar
    2224 posts

    Posted 16 Jan 2013 Link to this post

    Hello Nikhil,

    A separate editor template for new items is not supported but you could use the Grid edit event to add the input type file or show it. To determine whether update or create is performed, you can use the model isNew method.

    Kind regards,
    Daniel
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Nikhil
    Nikhil avatar
    5 posts
    Member since:
    Jan 2013

    Posted 17 Jan 2013 Link to this post

    Thanks Daniel,

    I had to implement my custom 'Create New record' functionality. Thanks for the quick response.
Back to Top