I have a master/detail radgrid tied to EntityDataSOurce controls.
I can't get the where clause to work so want to use OnQueryCreated for the details table to do the proper subsetting.
I have this working with a kludge by having ItemCommand "ExpandCollapse" save the Id of the parent record that I drill into in a sesison variable and then read that session variable in the OnQueryCreated event handler for the detail table. And that works but feels bad.
How can I get the parent item Id directly from OnQueryCreated?
If I try to access like this -
I can't get the where clause to work so want to use OnQueryCreated for the details table to do the proper subsetting.
I have this working with a kludge by having ItemCommand "ExpandCollapse" save the Id of the parent record that I drill into in a sesison variable and then read that session variable in the OnQueryCreated event handler for the detail table. And that works but feels bad.
How can I get the parent item Id directly from OnQueryCreated?
If I try to access like this -
rgrdStatus.MasterTableView.DetailTables[0].ParentItem.GetDataKeyValue(
"Id")
the ParentItem is always null!
Thanks!