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

Setting properties to fields in Custom Template

2 Answers 167 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matheus
Top achievements
Rank 1
Matheus asked on 15 Feb 2016, 05:54 PM

I have a kendoGrid where I defined it like this:

 editable: {mode : 'popup', template: kendo.template($("#ID_OF_EDIT").html())},

 

It's works fine, but inside my template there is a field which I'd lke to use a kendoNumericTextBox.

The question is, how can I set this property?

In the examples I only find this way: $("#ID_FIELD").kendoNumericTextBox(), but I'm not able to use it with grid. How can I do it?

2 Answers, 1 is accepted

Sort by
0
Matheus
Top achievements
Rank 1
answered on 17 Feb 2016, 10:37 AM

Just need to put the code inside the edit of the kendogrid 

 edit: function (e) {

$("#numDiasVerificacao").kendoNumericTextBox();
$("#datExpiracao").kendoDatePicker();
},

0
Boyan Dimitrov
Telerik team
answered on 17 Feb 2016, 03:05 PM

Hello Matheus,

 

Since it is part of the custom popup edit template you can simply define the input element with MVVM code as shown in the http://dojo.telerik.com/ohIxe example. 

 

Regards,
Boyan Dimitrov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Matheus
Top achievements
Rank 1
Answers by
Matheus
Top achievements
Rank 1
Boyan Dimitrov
Telerik team
Share this question
or