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

Expand Button in MasterTable not expanding

3 Answers 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Amy
Top achievements
Rank 1
Amy asked on 24 Feb 2011, 09:51 PM
Hi!  I have a RadGrid with a MasterTable and a DetailsTable.  The MasterTable has a column in it with the 'expand' button.  However when I click on the 'expand' button nothing happens. 

I've checked to ensure the 'GridRelationFields' have the correct values for the 'DetailKeyField' and the 'MasterKeyField'.  The MasterTable and the DetailsTable both have columns for these values.

Could someone provide suggestions for troubleshooting?  I have this same logic working on another page in our web application, but must be missing something for this particular page.

Thanks!

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 25 Feb 2011, 05:35 AM
Hello Amy,

If you are using GridButonColumn, check whether you have set appropriate CommandName for Exapnd/Collapse button.

ASPX:
<telerik:GridButtonColumn ButtonType="PushButton" Text="Expand" CommandName="ExpandCollapse">
</telerik:GridButtonColumn>

Or you can use GridExpandColumn for this purpose.
<telerik:GridExpandColumn ButtonType="PushButton">
</telerik:GridExpandColumn>

Thanks,
Princy.
0
Amy
Top achievements
Rank 1
answered on 01 Mar 2011, 02:15 PM
Princy, thank you for your suggestion.  However, I'm still not able to get the 'expand' button to work.  I'm guessing I don't have something linked correctly between the MasterTable and the DetailTable, but just can not seem to figure out what it may be.  Any other suggestions?

Thanks!
0
Amy
Top achievements
Rank 1
answered on 01 Mar 2011, 05:25 PM
Princy, I was able to get the issue resolved.  I think the cause may have been the session parameter I specified in the sqldatasource was not the same value as the input parameter for the stored procedure.  Once I modified the stored procedure input parameter to be the same as the session parameter in the sqldatasource I was able to get the rows to expand in the grid.

Thank you as always for all your help!!
Tags
Grid
Asked by
Amy
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Amy
Top achievements
Rank 1
Share this question
or