Pending Review
Last Updated: 15 Aug 2018 08:35 by ADMIN
Bill
Created on: 07 Aug 2017 17:14
Category: DropDownList
Type: Feature Request
2
Let valueField and textField properties accept callback functions to interact with complex objects.
The Dropdowns, autocompletes and pretty much every component in the Kendo Angular 2 should allow the developer to specify a callback function in the [valueField] or the [textField] attributes so we can use complex objects with these components.  

This way, we could do this:
//template

<kendo-autocomplete [data]="nodes"

                        [valueField]="getDataValue"

                        [placeholder]="'search'"

                        class="search">

</kendo-autocomplete>

//class

public getDataValue(node: any): string {

  return node.getData().getName();

}

This functionality is available on almost every other component set out there, but is somehow missing from Kendo.  It makes the components almost useless outside of running simple plunkr examples that work with contrived data objects with very little depth.  In the real world, particularly with typescript, data object hierarchies are commonplace and this is simply a must have feature.
0 comments