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