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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Access array value in grid

Thread ID:





130048 Apr 18,2017 04:27 PM UTC Apr 19,2017 05:00 PM UTC Angular 1
Tags: ejGrid
Asked On April 18, 2017 04:27 PM UTC

    <ej-grid #grid id="Grid"
        <e-column field="recommendations[0].prop1" headerText="prop1"></e-column>   
        <e-column field="recommendations[0].prop2" headerText="prop2"></e-column>          

Not sure how to implement something like this, structures is like this

data= [
          recommendations: [
               prop1: 'hello',
               prop2: 'goodbye'

Thavasianand Sankaranarayanan [Syncfusion]
Replied On April 19, 2017 05:00 PM UTC

Hi Zack, 

Thanks for contacting Syncfusion support. 

We have analyzed your query and we suspect that you want give dataSource for the ejGrid control. 

Refer the below code example. 


<ej-grid id="Grid" #grid  [dataSource]="data" [allowPaging]="true"> 
        <e-column field="EmployeeID"  headerText="Employee ID"  ></e-column> 
        <e-column field="OrderID" headerText= "Order ID" ></e-column> 

export class AppComponent { 
    public data = [ 
        { OrderID: "10248", EmployeeID: 1 }, 
        { OrderID: "10249", EmployeeID: 2 }, 
        { OrderID: "10250", EmployeeID: 3 }         

Refer the help documentation. 

Thavasianand S. 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon