Is there a way we can set alternate values for selected path and displaymember

Posted by: samvarth123 on 8 October 2020, 5:56 am EST

  • Posted 8 October 2020, 5:56 am EST

    Is there a way we can set alternate values for selected path and displaymemberpath .Suppose I don’t have key in xxx in the itemsource then yyy key needs to diplayed .Likewise since xxx is not there upon selection zzz should be there.

    We are using angular 7 with wijmo flex grid.Please let us know ;

    To show what I am asking below is the example case :

    <wj-flex-grid-column [header]=“‘One Path’” [binding]=“‘onePath’” [width]=“175”>

    <ng-template wjFlexGridCellTemplate [cellType]=“‘CellEdit’” let-cell=“cell” let-item=“item”>

    <wj-auto-complete [displayMemberPath]=“‘xxx’ || ‘yyy’”

    [selectedValuePath]=“‘xxx’|| ‘zzz’”

  • Posted 8 October 2020, 5:57 am EST

    Thanks in advance.The other one is a duplicate.Sorry for that.

    Regards,

    Siva

  • Posted 9 October 2020, 1:25 am EST

    Hi Siva,

    Sorry, this is not possible. You can update with the display values using the formatItem event of the AutoComplete (you can display the values with any property you wish) but the selectedValuePath will always be set to a single value.

    Regards,

    Ashwin

Need extra support?

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

Learn More

Forum Channels