Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2350
igCombo - " " displaying. Cannot fix with ItemTemplate
posted

Hello,

This issue was originally posted in https://www.infragistics.com/community/forums/p/97440/513589.aspx#513589 . It was later fixed in 15.1; however, it began re-occurring in 16.2. The workaround for 16.2 was referenced in this post https://www.infragistics.com/community/forums/p/109033/513338.aspx

I currently have a combobox in a grid that uses a KeyValuePair and has a blank value. Using an ItemTemplate results in the error "An error has occurred while trying to retrieve data source property: ${ProductGroupId}". I've attached an example of this. In the example, edit the first row, then hit the dropdown for the Product Group Code. You will receive the console error. Is there a workaround that can be used for the " " display issue that doesn't use ItemTemplate or is there a way to get the ItemTemplate to work with a KeyValuePair?

Thanks,

Paul

igGrid_EditingEvents v5.zip
Parents
  • 1740
    Verified Answer
    Offline posted

    Hello Paul,

    As already mentioned on the forum threads for now this is the workaround for this issue.

    I fixed your sample. to work with approach, that is proposed in other forum threads.

    Your mistake is, in getting the value key. In your datasource, your Textkey is represented like in the ComboDataViewModel, which name is "value" like your textKey for combo that you've set.

    Your template should be represented by this way: "{{if ${Value} == '' }} {{else}}${Value}{{/if}}".

    If you need further assistance and questions please let me know.

Reply Children
No Data