Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi I'm implementing angularJS grid and using ng-grid for the same. I refered to the example at http://angular-ui.github.io/ng-grid/[^]

Here the data is hard coded and gets shown on the grid. I have a set of question.

1. How can I bind the data that is obtained from a WCF service ?
2. I want the gridcell to be editable on tab event. how can I perform this ?
3. When the gridcell is edited the data in the cell on tab out will be given as an input to the WCF service which will return data to be populated in remaining cells of the gridrow.

If anyone can suggest about editable gridview, that can also do partially.

Please , if anyone can help regarding this issue.
Thank you.
Posted
Updated 7-May-13 23:47pm
v3
Comments
Bala Selvanayagam 8-May-13 6:53am    
WCF service out put should be in JSON format
sagar wasule 8-May-13 7:39am    
thanks Bala for ur response, Yes I can have WCF service output in JSON format but I'm not able to find find how can I code to bind that data to Grid, even my major concern is to edit the grid, how can I go about that ?
Bala Selvanayagam 8-May-13 9:44am    
sagar, I am not an expert on AngularJs but trying to build a prototype for our next project which is due to start soon.

My understanding is that when you bind the data on the client side with angular javascript it may not be very hard to make it editable as its a data binding ?

Please have a look at the URL http://harouny.wordpress.com/2013/02/03/using-angularjs-to-consume-webapi-service-in-mvc4-project/ which gives and idea.
sagar wasule 9-May-13 2:07am    
your this response is good helps in fetching data from wcf service. Now the grid issue persists , hope I can integrate both and workout something ...
Bala Selvanayagam 9-May-13 9:07am    
glad

1 solution

I have gone through various links on google and found out that ngGrid does not support on focus editable functionality in 2.0

I created a customed control for this which can be make shift arrangement for on focus editable grid.
You all can check this on my blog :

http://travelcodingnlotsmore.wordpress.com/2013/05/21/on-focus-editable-grid-in-angularjs/[^]

Feedback is appreciated, this is not actual grid but a make shift arrangement that can be done.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900