core icon indicating copy to clipboard operation
core copied to clipboard

Is it possible to use the hypergrid in an angular 1/2 component?

Open wcom939 opened this issue 8 years ago • 5 comments

Hi ,

I am looking to use this with an angular 2 component such that the data is retrieved on the component side and then the datasource is updated for the grid.

By any chance do you have an example of this grid working with an angular 2 component?

Thanks, Dan

wcom939 avatar Jan 16 '17 03:01 wcom939

Hello @wcom939 We do not have currently have an angular example. It is on our long term roadmap. Please note that Hypergrid can bind to data through passing an array of objects

var myArr = [
{col1: "a", col2: "a", col3: "a"},
{col1: "b", col2: "b", col3: "b"},
{col1: "c", col2: "c", col3: "c"}
];

myGrid.setData(myArr);

Dwaynekj avatar Jan 17 '17 15:01 Dwaynekj

Hi @wcom939,

I cannot provide a concrete example here but it is definitely possible. We are using fin-hypergrid in our projects fused with angular 1.5 component syntax, so angular 2 is probably ok (understanding Angular 1 and Angular 2 are two different frameworks). I guess you can derive from the JSON behavior and call setData anytime you have an update on the data. Previously we were using ng-repeat table and the performance was quite frustrating for huge number of rows, and fin-hypergrid just to the rescue.

osbert-messerfs avatar Feb 06 '17 07:02 osbert-messerfs

@osbert-messerfs Thank you so much for chiming in! We haven't yet gotten familiar with Angular 2 so its awesome to have your input!

Dwaynekj avatar Feb 06 '17 15:02 Dwaynekj

@edyhuang

Another question, I am trying to intergrate hypergrid with angular4. Having issues instantiating Hypergrid in an Angular component. I kept getting Hypergrid not a constructor when doing new Hypergrid(...)

I am using the library pulled from npm registry for fin-Hypergrid

Can you please help?

Thanks Edward

Dwaynekj avatar Mar 29 '17 16:03 Dwaynekj

@Dwaynekj Any gotchas you remember for angular integration?

nowherenearithaca avatar Aug 15 '18 16:08 nowherenearithaca