Any advice?
onselecting event for datasource:
protected void ActivitiesData_Selecting(object sender, LinqDataSourceSelectEventArgs e)
{
DevelopmentPlanRepository dvp = new DevelopmentPlanRepository(Conn);
e.Result = dvp.GetActivitiesForGoal(
Convert.ToInt32(e.SelectParameters["GoalId"]));
}
<
telerik:RadGrid ID="DevelopmentGoalGrid" runat="server" AllowPaging="True"
AllowSorting="True" DataSourceID="GoalsData" GridLines="None">
<
MasterTableView DataKeyNames="GoalId" DataSourceID="GoalsData">
<DetailTables>
<telerik:GridTableView DataKeyNames="ActivityID" DataSourceID="ActivitiesData" Width="100%"
runat="server" AutoGenerateColumns="true">
<ParentTableRelation>
<telerik:GridRelationFields DetailKeyField="GoalId" MasterKeyField="GoalId" />
</ParentTableRelation>
<RowIndicatorColumn>
<HeaderStyle Width="20px" />
</RowIndicatorColumn>
<ExpandCollapseColumn>
<HeaderStyle Width="20px" />
</ExpandCollapseColumn>
</telerik:GridTableView>
</DetailTables>
<
RowIndicatorColumn>
<
HeaderStyle Width="20px"></HeaderStyle>
</
RowIndicatorColumn>
<
ExpandCollapseColumn Visible="True">
<
HeaderStyle Width="20px"></HeaderStyle>
</
ExpandCollapseColumn>
</
MasterTableView>
<ClientSettings>
<Selecting AllowRowSelect="True" />
</ClientSettings>
</
telerik:RadGrid>
<
p>
</p>
<
p>
</p>
<
asp:LinqDataSource ID="GoalsData" runat="server"
onselecting="GoalsData_Selecting">
</
asp:LinqDataSource>
<
asp:LinqDataSource ID="ActivitiesData" runat="server"
onselecting="ActivitiesData_Selecting">
<SelectParameters>
<asp:Parameter Name="GoalId" Type="Int32" />
</SelectParameters>
</
asp:LinqDataSource>