Setting properties to fields in Custom Template

3 posts, 0 answers
  1. Matheus
    Matheus avatar
    5 posts
    Member since:
    Jan 2016

    Posted 15 Feb 2016 Link to this post

    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. Matheus
    Matheus avatar
    5 posts
    Member since:
    Jan 2016

    Posted 17 Feb 2016 Link to this post

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

     edit: function (e) {

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

  3. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    2062 posts

    Posted 17 Feb 2016 Link to this post

    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!
     
Back to Top