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

Change PageIndex in DetailTableView

1 Answer 98 Views
Grid
This is a migrated thread and some comments may be shown as answers.
วรวุฒิ
Top achievements
Rank 2
วรวุฒิ asked on 17 Oct 2008, 11:16 AM
We are used RadGrid with MasterTabelView and DetailTableView to display hirachycal data.We implemented needdatasource to bind grid and pageindexchage to handle pagechage event but We have problem when DetailTableView need to change pageindex.How we do to handle me thode for DetailTableView pageindex change inside the MasterTableView.



Please Help

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 20 Oct 2008, 04:54 AM
Hi,

You can differentiate between the Master and child table using the Name property in the PageIndexChanged event as shown below:

  if( e.Item.OwnerTableView.Name=="DetailTable")
    {
        //Write your code snippet here
    }

Note: You can set the name property from the aspx in the  DetailTable

  <DetailTables>
    <telerik:GridTableView Name="DetailTables" >
    </telerik:GridTableView>
  </DetailTables>

Thanks,
Princy
Tags
Grid
Asked by
วรวุฒิ
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Share this question
or