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
395
complex template and updating mode cause bug
posted

hello everybody,

I have a problem with utilisation of complex template columns (template with conditionnal wich use value of grid) and the updating functionnality

there is the template : {{if !el.isLineIsWritable(${mvt}, ${sapStateR}, ${sapStateL}, ${sapStateP}, ${sapStateS}, ${sapStateI})}}<span class='el-item-readonly'>${refCom}</span>{{else}}<span>${refCom}</span>{{/if}}

obviously, all key used in this template exists in the grid definition

This template works fine, the problem is when we entered in edition mode in cell (any cells), and we validate the entry, we have a JS error : Uncaught Error: An error has occurred while trying to retrieve data source property: ${mvt} in the file infragistics.templating.js


We already use template with grid and updating. for exemple this template does not cause the bug : <span class='numeric-cell'>{{if ldi.displayLastchange}}<span class='ldi-item-newart-${cmgDeltaQty1}'>${cmgQty1}</span>{{else}}<span>${cmgQty1}</span>{{/if}}</span>.

The difference with the first template is we not use key in the if statement. I conclude the utilisation of key in the if statement causes the bug


Ca you help me ?

Thanks for your help 

Sincerely

Gourdon Julien


PS : we use the last ignite ui version (last release of 2013.1)

Parents
  • 49378
    posted

    Hello Gourdon,

    Thank you for posting in the community !

    I have tested this scenario using the latest SR available for version 13.1 of IgniteUI however passing a key in an if statement does not appear to produce the described results after editing so far. Attached is my test sample for your consideration. In order to allow me to examine the matter further, please feel free to modify the sample to illustrate the issue.

    Do not hesitate to contact me with any updates or questions.

    json-binding (7).zip
Reply Children