Declined
Last Updated: 09 Jun 2021 15:54 by ADMIN
Jason
Created on: 05 Mar 2014 18:01
Category: DropDownList
Type: Bug Report
0
data-text-field can no longer be a function
I am using 2013.2.918 and this is working.  I tried to upgrade to 2013.3.1324 and it is no longer working.  Please see attached.  Do you know how I can work-around this or is this a known issue?
3 comments
ADMIN
Rumen
Posted on: 09 Jun 2021 15:54

The item is declined since it applies to the Kendo UI suite. Please post your question in the Kendo UI Feedback portal.

Jason
Posted on: 01 Apr 2014 20:08
<html>
<head>
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script src="http://cdn.kendostatic.com/2013.3.1324/js/kendo.all.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>


  <input data-role="dropdownlist" data-auto-bind="false" data-bind="source: ordersDataSource" data-value-field="ShipCity" data-text-field="CalculatedField()"/>
                

<script>
var ordersDataSource = new kendo.data.DataSource({
    type: "odata",
    transport: {
        read: {
            url: "http://demos.kendoui.com/service/Northwind.svc/Orders",
            type: "GET",
            dataType: "jsonp",
            contentType: "application/json"
        }
    },
    schema: {
        type: "json",
        data: function(response) {
            return response.d.results;
        },
        model: {
            CalculatedField: function() {
                return this.get("ShipCountry") + " " + this.get("ShipCity");
            }
        }
    }
});

var viewModel = kendo.observable({
    orders: ordersDataSource
});

kendo.bind($(document.body), viewModel);
</script>  
</body>
</html>
Elena
Posted on: 24 Mar 2014 12:39
Hi,

We can't open the attachment. Could you please open a support ticket and send us your code to examine it locally?

Regards,
Elena