Kendo UI Network - Different Editing and Creating Templates

We use the Kendo UI grid to display some entries. The requirements require that we have a column (Say "File Name") that appears as a text field when the user clicks "Edit". However, when the user clicks the Create button on the toolbar, the same column should be replaced with the File Select element, which will allow the user to select a file from his machine. The remaining columns remain the same. I have already tried searching through Stack Overflow, as well as the Kendo UI Grid forums, but to no avail. Is there any way to achieve this? Any pointers would be very helpful.

Regards, Nihil

+5
source share
1 answer

/ . edit Grid, JavaScript. , isNew() . .

edit:function(e){
      if(e.model.isNew()){
          //replacement logic
      }
 }

.

+9

All Articles