Use ObservableArray with kendo-panel-bar

2 posts, 1 answers
  1. Pascal
    Pascal avatar
    3 posts
    Member since:
    Oct 2014

    Posted 16 Oct 2014 Link to this post

    I've a kendo-panel-bar (using the AngularJs directive) which I would like to bind to a datasource. Unfortunately it seems like the panel bar cannot bind to a Setting the datasource to an array works fine, setting it to an ObservableArray results in a "Cannot read property 'length' of undefined" exception.

    I'm aware of the solution with k-rebind (provided here: Since I want to use the panel bar bound to a Breeze datasource (which internally uses a ObservableArray), this is unfortunately not a solution for me.

    Are there any other possibilities to have a panel bar bound to an ObservableArray?
  2. Answer
    Petyo avatar
    2444 posts

    Posted 20 Oct 2014 Link to this post

    Hello Pascal,

    I am afraid that currently the panelbar does not feature the data binding abilities which most of the other databound widgets support.

    The k-rebind solution is a viable one in your case, though. You can convert the observable array to regular object using the toJSON() method, and point the k-rebind to a property which gets changed when changes occur. 

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top