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

scroll not working for master table when using details table

1 Answer 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chinnu Prabhakar
Top achievements
Rank 1
Chinnu Prabhakar asked on 08 Jun 2010, 11:01 AM
HELP ME URGENT scroll not working for master table when using details table .

i use the code :


                                <telerik:RadGrid ID="GridCard" runat="server" allowpaging="true"
                                gridlines="None"  pagesize="10" Width="900px" Height ="500px"
                                Visible="False"  OnDetailTableDataBind="RadGridViewChapter_DetailTableDataBind" >
                   <MasterTableView AutoGenerateColumns="False" HorizontalAlign="NotSet"  DataKeyNames="StartDate" ClientDataKeyNames="StartDate">
                    <DetailTables >  
                     <telerik:GridTableView  EnableNoRecordsTemplate="true"  CssClass="Detail2"   BorderStyle="Solid" ShowHeader="true" BorderWidth="1px" HorizontalAlign="Center"
                                         ShowFooter="false" AutoGenerateColumns="False"  DataKeyNames="StartDate" Width="95%" runat="server" Name="LessonTitle" CommandItemDisplay="None">                                        
                        <ParentTableRelation>
                            <telerik:GridRelationFields DetailKeyField="StartDate" MasterKeyField="StartDate" />
                        </ParentTableRelation>   
                            <Columns >
                                  <telerik:GridTemplateColumn Visible="false" HeaderStyle-HorizontalAlign="Center" HeaderText="StartDate" >
                                    <ItemTemplate >
                                        <asp:Label ID="lblChapterId1" runat="server" Text='<%# Bind( "StartDate") %>'></asp:Label>
                                    </ItemTemplate>
                                  </telerik:GridTemplateColumn>   
                                         .......................................                  
                            </Columns>
                     </telerik:GridTableView>
                                  </DetailTables>
                                    
                                    <Columns>                                
                                                                          
                                      .........................................................
                                        
                                    </Columns>
                                    <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                                    <NoRecordsTemplate>
                                        <div align="center" class="ErrorBold">
                                            There are no reccords to display</div>
                                    </NoRecordsTemplate>
                        </MasterTableView>
                                   <ClientSettings>
                                      <Scrolling AllowScroll="True" UseStaticHeaders="True" FrozenColumnsCount="2" />
                                  </ClientSettings>
         </telerik:RadGrid>

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 08 Jun 2010, 12:07 PM
Hello Chinnu,

I am sending you a simple working application which handles the required functionality. Please, check it out and see if it works as expected.

Additionally, you can review the following code library, which elaborates on how to add scrolls to each table in grid hierarchy:
Separate scrolls for inner tables in hierarchical grid

All the best,
Pavlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Chinnu Prabhakar
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or