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

ObjectDataSource and RadGrid Hierarchy

1 Answer 122 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Scott
Top achievements
Rank 1
Scott asked on 14 Jan 2008, 09:45 PM
Hi all,

I'm trying to use ObjectDataSources for each level of a RadGrid Hierarchy view, almost exactly like the AccessDataSources are listed in the sample on the web site that shows the customer - order - order details in an expandable hierarchy view.  I think I'm close to getting it working, but no matter what I put in the SelectParameters the value I get in the SelectParameter function is 0.  (In other words, I have the ObjectDataSource that handles getting the data for the children of the top-level items taking a parameter to represent the item that was expanded.  However, I can't tell what item was expanded and therefore cannot tell which children to get.)  Has anyone else run into this problem?  What am I doing wrong?

Thanks,
Scott

1 Answer, 1 is accepted

Sort by
0
EmpowerIT
Top achievements
Rank 2
answered on 16 Jan 2008, 05:52 AM
You must specify the foreign keys that get passed down from the parent table as <asp:SessionParameters>, they also must have the same name and session name. Also, they need to exist in DataKeyNames property

It happens automagically =)
Tags
Grid
Asked by
Scott
Top achievements
Rank 1
Answers by
EmpowerIT
Top achievements
Rank 2
Share this question
or