Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Consider I have the following structure of Table TeamDetails

Team Details
-------------------------------
Id => primary key of the table
TeamId=> references ID of table Team (Navidation Property (Teams1))
DefaultTeam=> references ID of table Team or Null (Navidation Property (Teams))


here in Entity framework I am using Navigation Properties and consider I am displaying the data in a radGrid.
my problem is
When i try to use the navigation property of both through Teams.name and Teams1.name, I get the data only under the column Teams.name (ie default TeamId) and in Teams1.name only when the data matches with any other elements in Teams.name , the data is displayed.
For example
Team || DefaultTeam
==========================
Team1 || Team2
|| Team3 (actual result has to be Team4 || Team3)
Team3 || Team1

here Team4 is not visible because it is not in any of the elements of defaultTeam. I dont know y this is showing like this. Would be good if u guys explain y it is showing like this and to get the exact result
Posted

1 solution

I got the solution for this.
I did "Include="Teams,Teams1" in EntityDatasource (which is used as a datasource by radGrid). Now it is working fine.
But I need more explanation for this. ?
My question now is If I am not referring the Teams1 property, then it got displayed in the grid firstplace(for the matched elements).

Thanks
 
Share this answer
 
v3

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