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

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

3 Answers 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sf
Top achievements
Rank 1
sf asked on 20 Apr 2010, 10:19 AM
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.

3 Answers, 1 is accepted

Sort by
0
sf
Top achievements
Rank 1
answered on 21 Apr 2010, 07:21 AM
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.....
0
Daniel Aquere
Top achievements
Rank 2
answered on 28 Nov 2011, 11:28 AM
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
0
Princy
Top achievements
Rank 2
answered on 28 Nov 2011, 11:33 AM
Hello,

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

Thanks,
Princy.
Tags
Grid
Asked by
sf
Top achievements
Rank 1
Answers by
sf
Top achievements
Rank 1
Daniel Aquere
Top achievements
Rank 2
Princy
Top achievements
Rank 2
Share this question
or