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)
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.
Hi Petar,
With the last version 3.13.1.2292 I have always this pb. I reduce the template to check only a column like this
{{if ${{isWritable} )}
<span class='el-item-readonly'>${elQty}</span>
{{else}}
<span>${elQty}</span>
{{/if}}
Uncaught Error: An error has occurred while trying to retrieve data source property: ${isWritable} infragistics.templating.js:
Thanks for your answer
Other informationThe field isWritable is not editable. Same in the first template, all fields passed to the function were not editable.
Did you ever find a resolution to this issue? I am having the exact same issue and I am doing the exact same thing as you. I am using a template to output a <div> with or without a class='readonlyField' attribute depending on the value of another column. When I go to edit the cell I get the exact same error as you. It is occurring in the CompileTemplate method of the Infragistics library.
Hello Mike,
No I don't find a resolution to this issue but I have a ticket in your support team, the number is CAS-129473-Q6Z9H6 and the development ID is 160852.
Thanks for your response.