Can I bind to objects using DataMap?

Posted by: mbrennan376 on 29 September 2017, 8:09 pm EST

  • Posted 29 September 2017, 8:09 pm EST

    I have an array of objects, and one of the properties on that array is an object. Is it possible to use DataMap to select a value for that object with a dropdown?

    I tried this:

    var col3 = ctrl.flex.columns.getColumn('group');
    angular.forEach(ctrl.parent.comboData.CostLineGroups, function (item) {
    item.Thing = item;
    });
    col3.dataMap = new wijmo.grid.DataMap(ctrl.parent.comboData.CostLineGroups, 'Thing', 'Description');

    and it seems to populate the dropdown correctly but the dropdown does not allow selection of the item
  • Replied 4 October 2017, 4:21 am EST

    Hi,
    We are sorry for the late reply.
    Please ensure that the value is getting displayed in the column without using dataMap for that column.

    Please also share a demo sample depicting your issue for further investigation if the issue persists.

    Thanks,
    Manish Kumar Gupta
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels