This is a migrated thread and some comments may be shown as answers.

Bind column to related table

2 Answers 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 2
Stefan asked on 24 Feb 2012, 07:11 PM
Hey

Is it possible to bind a column to a related table?

If i add a column like this where "tblCategory" is the related table:

{
         field: "tblCategory",
         title: "Category"
}

I can see that it's an [Object] and that it does refer to: "data.svc/tblProducts(1)/tblProducts"

Is it possible to get the data from that somehow?

Cheers

2 Answers, 1 is accepted

Sort by
0
Stefan
Top achievements
Rank 2
answered on 27 Feb 2012, 10:53 AM
Bumping for knowledge.
0
Stefan
Top achievements
Rank 2
answered on 27 Feb 2012, 12:55 PM
Figured out i just needed to add "$expand=" to the url. Then i can get the related data with "tblRelatedTable.Field"
Tags
Grid
Asked by
Stefan
Top achievements
Rank 2
Answers by
Stefan
Top achievements
Rank 2
Share this question
or