Detail table requires 2 parameters one from parent mastertable one from hiddenfield control

4 posts, 0 answers
  1. sf
    sf avatar
    103 posts
    Member since:
    Apr 2009

    Posted 20 Apr 2010 Link to this post

    I have a RadGrid with a detail table in it. The detail table uses an objectdatasource which requires 2 parameters. The first parameter gets value from a HiddenField control outside of the grid, and the second parameter is the datakey of the master table of the RadGrid. This structure worked fine always, just found out it stopped working today. I haven't touched this page for ages so there shouldn't be any "new code" that broke this. I have upgraded my telerik controls from 2009 to Q1 2010 version recently. Is it possible that this upgrade caused the problem? Hope somebody has come crose similar issues, thanks.
  2. sf
    sf avatar
    103 posts
    Member since:
    Apr 2009

    Posted 21 Apr 2010 Link to this post

    found the solution!
    After the upgrade to Q1 2010, for some reason all detail tables of this RadGrid have been set to "visible=false".
    Also checked other RadGrid controls in the system all seem fine, except this one... Wierd.....
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Daniel Aquere
    Daniel Aquere avatar
    85 posts
    Member since:
    Mar 2011

    Posted 28 Nov 2011 Link to this post

    Hi sf,

    I have the same need, two paramenteres for DetailTables, something like this:


    <DetailTables>
    <telerik:GridTableView DataKeyNames="resp_codigo" DataSourceID="SqlDataSource_Atividades" Width="100%" runat="server">
    <ParentTableRelation>
           <telerik:GridRelationFields DetailKeyField="resp_codigo, proj_codigo" MasterKeyField="resp_codigo" />
            </ParentTableRelation>
            <Columns>
    ...

    Please, how can you solve this?

    Thanks, best

    Daniel
  5. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 28 Nov 2011 Link to this post

    Hello,

    Take a look into the following forum thread which discussed the same.
    Multiple DetailKeyField MasterKeyField

    Thanks,
    Princy.
Back to Top