ObjectDataSource and RadGrid Hierarchy

2 posts, 0 answers
  1. Scott
    Scott avatar
    1 posts
    Member since:
    Jan 2008

    Posted 14 Jan 2008 Link to this post

    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?

  2. EmpowerIT
    EmpowerIT avatar
    117 posts
    Member since:
    Jun 2007

    Posted 15 Jan 2008 Link to this post

    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 =)
Back to Top