Hi,
Is it possible to use node content templates in the igTree control when when using KnockoutJS data binding? When i tried to use a content template the node text was replaced with java script code instead of the property value.
Here is an example: http://jsfiddle.net/38prU/1/
The example is based on the demo from http://igniteui.com/tree/bind-tree-with-ko . The only thing i changed was to replace
textKey: 'CategoryName'
in the binding with
nodeContentTemplate: '${CategoryName}'
which should (if i understand correctly) yield the same result.
What do i have to change to make the template display correctly.
Hey guys,
About your concerns, templating is working as it should be – it is returning the value of the property which is passed to it as html. I waned to let know know that I am currently researching this matter and will contact you soon with my findings.
Thanks for the reply.
I'm looking forward to your findings.
Hi there,
NodeContentTemplate is now supported with the knockout extension for the igTree. You can test it in your sample: http://jsfiddle.net/38prU/2/
Thank you for using the Infragistics forums!
Hello,
I'm just following up to see if you need any further assistance. If so please let me know.
Hello Paul,
Could you please explain to me what is your goal, what you want to achieve with the templating. I am asking because, using node content template with knockout is not supported.
Looking forward to hearing from you.