1

Is there any way I can use knockout js in Dynatree ?

If anyone has implemented please do let me know

Thanks, Anirban

Anirban
  • 589
  • 3
  • 16
  • 40
  • I haven't used DynaTree but I have written a tree in pure KO under https://github.com/madcapnmckay/Knockout-UI you might want to check it out and see if it would be useful. – madcapnmckay Mar 09 '12 at 01:08

1 Answers1

4

Here is a fiddle that shows Knockout loading a View Model via AJAX and then converting the rendered elements into a Dynatree.

http://jsfiddle.net/jearles/EZgNs/

John Earles
  • 7,194
  • 2
  • 37
  • 35
  • IE has a problem loading this fiddle. It works in FF and Chrome. – tzerb Apr 17 '12 at 15:16
  • 1
    This is the error I see in IE9: "Script from https://raw.github.com/SteveSanderson/knockout.mapping/master/build/output/knockout.mapping-latest.js was blocked due to mime type mismatch". This doesn't appear to be a problem with the fiddle itself. – John Earles Apr 17 '12 at 18:50