We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

grid binding

Hi,

I'm wondering is it possible to bind a grid to observableArray?

Thank you,

Cipo.

5 Replies

YO Yogeshwaran Syncfusion Team September 17, 2013 05:56 AM UTC

Hi Cipo,

 

Thanks for using Syncfusion products.

 

Yes , it is possible to bind grid to observable array. Define Observable array in model and then bind it with grid using knock out then use this observable array to update data to grid. Please refer the below link.

 

http://js.syncfusion.com/demos/beta/#!/flat/grid/Knockout Support

 

Please let us know if you have any further assistance.

 

Regards,

Yogesh R



DC darko cernik September 17, 2013 08:26 AM UTC

Hi Yogesh,

in the sample you sent me grid is not binded to observableArray.
It is binded to data (JSON):

        $("#Grid").ejGrid({
                        dataSource: data,

which is returnd from ej.DataManager:
var data = ej.DataManager(window.gridData).executeLocal(ej.Query().take(12));

What I need is this:

var myonservableArray = ko.observableArray([

    { name: "Bungle", type: "Bear" },

    { name: "George", type: "Hippo" },

    { name: "Zippy", type: "Unknown" }

]);

$("#Grid").ejGrid({
                        dataSource: myonservableArray,

Obviously, I've tried that but it won't work for me. Do you have any suggestion?

Thank you,

Cipo.


YO Yogeshwaran Syncfusion Team September 18, 2013 12:17 PM UTC

Hi Cipo,

We have logged your requirement as a feature request in our database and we will consider  this feature in our upcoming Volume releases.

Please let us know if you have any concerns.

Thanks,
Yogesh R



RC Robin Cote November 13, 2013 04:19 PM UTC

Any idea when we will be able to bind the grid to a KnockoutJS observableArray?




YO Yogeshwaran Syncfusion Team November 14, 2013 01:17 PM UTC

Hi Robin,

 

Thanks for your patience.

 

We usually have an interval of at least three months between releases. The feature implementation would also greatly depend on the factors such as product design, code compatibility and complexity. We will update you when this feature has been implemented.

 

Please let us know if you have any concerns.

 

Regards,

Yogesh R


Loader.
Live Chat Icon For mobile
Up arrow icon