template as dataTextField

3 posts, 0 answers
  1. Maxim Konstantinovski
    Maxim Konstantinovski avatar
    63 posts
    Member since:
    Mar 2007

    Posted 17 Apr 2012 Link to this post


    Is there a way to define dataTextField to be a template? Perhaps it may be a good idea to define two new properties displayTemplate and valueTemplate to make control more flexible and customizable on client side.
  2. Georgi Krustev
    Georgi Krustev avatar
    3689 posts

    Posted 18 Apr 2012 Link to this post

    Hello Maxim,

    Currently display template is not supported. You can share your thoughts in our UserVoice. Thus other users can vote for such functionality.

    Georgi Krustev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Jerry T.
    Jerry T. avatar
    118 posts
    Member since:
    Jul 2012

    Posted 24 May 2012 Link to this post

    According to this demo, templates *are* supported:


    maybe not for the dataTextField property, itself, but there's a template property.  Here's another example from my own code:

    portion of the column definition:
        var columns = [
            { field: "CostCategoryAbv", title: "Cat", width: 45, editor: comboboxCostCategory },

    and here's the editor function:

        function comboboxCostCategory(container, options) {
            $("<input name='" + options.field + "' style='width:275px;'/>")
             autoBind: false,
             dataSource: me.costCategoryDataSource,
             dataTextField: "CostCatAbv",
             dataValueField: "CostCatAbv",
             template: "${ data.CostDescription }"

Back to Top