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.
Unfortunately, activation email could not send to your email. Please try again.

grid binding

Thread ID:

Created:

Updated:

Platform:

Replies:

111207 Sep 12,2013 07:39 AM Nov 14,2013 08:17 AM JavaScript 5
loading
Tags: ejGrid
darko cernik
Asked On September 12, 2013 07:39 AM

Hi,

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

Thank you,

Cipo.

Yogeshwaran [Syncfusion]
Replied On September 17, 2013 01:56 AM

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


darko cernik
Replied On September 17, 2013 04:26 AM

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.

Yogeshwaran [Syncfusion]
Replied On September 18, 2013 08:17 AM

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


Robin Cote
Replied On November 13, 2013 11:19 AM

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



Yogeshwaran [Syncfusion]
Replied On November 14, 2013 08:17 AM

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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;