This is a migrated thread and some comments may be shown as answers.

Adding template for the Create New button

2 Answers 104 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nikhil
Top achievements
Rank 1
Nikhil asked on 14 Jan 2013, 02:18 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 16 Jan 2013, 01:00 PM
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!
0
Nikhil
Top achievements
Rank 1
answered on 17 Jan 2013, 12:35 PM
Thanks Daniel,

I had to implement my custom 'Create New record' functionality. Thanks for the quick response.
Tags
Grid
Asked by
Nikhil
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Nikhil
Top achievements
Rank 1
Share this question
or