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
145
igTree 2013.2: Using node content templates with knockout.
posted

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.

Parents
  • 20255
    Offline posted

    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.

Reply Children