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

Remote data source resource dataTextField binding

1 Answer 123 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Colin
Top achievements
Rank 1
Colin asked on 01 Mar 2016, 09:32 PM

Currently setting up a remote data source for resources. If I bind the same server side field for sorting as for the field I use for the dataTextField, I get an undefined label. If I have no "value" field then the labels reappear properly.

 

I can work on a Dojo example if needed.

I am using AngularJS with restangular for routing in the transport section. 

resources: [
    {
        name: "Equipment Number",
        field: "unit_number",
        dataTextField: "unit_number",
        title: "Equipment Number",
        dataSource: {
            transport:{
                read: function (e) {
                    dispatchFactory.equipment("read")
                    .then(function (result) {
                        console.log(result.data);
                        e.success(result.data);
                         
                    });
                }  
            },
            schema: {
                model: {
                    id: "EquipmentModel",
                    fields: {
                        value: {from: "unit_number"},
                        //unit_number: {from: "unit_number"}
                         
                    }
                }
            }
        }
    }
]

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 03 Mar 2016, 08:59 AM
Hello Colin,

I tried to reproduce the problem locally but to no avail – everything is working as expected on our side. Could you please provide runable demo where the issue is reproduced? This would help us pinpoint the exact reason for this behavior.

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