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 Reply Children
No Data