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

[Solved] GridTemplateColumn problem pages not working

3 Answers 113 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Morteza Khataei
Top achievements
Rank 1
Morteza Khataei asked on 01 Oct 2009, 05:59 AM
Hello
I used to control RadGreid
When View Record GridTemplateColumn defined as I, shows the pages before and after the page is not working
       <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" OnItemCommand="grdusers_ItemCommand" AllowPaging="True" PagerStyle-Position="TopAndBottom" DataSourceID="SqlDsEbook" GridLines="None">  
                <MasterTableView DataKeyNames="DocId" DataSourceID="SqlDsEbook" NoMasterRecordsText="There is no record to display!" 
                CommandItemDisplay"TopAndBottom" > 
                <CommandItemSettings AddNewRecordText="Append"  /> 
                <Columns> 
                    <telerik:GridTemplateColumn UniqueName="TemplateColumn">  
                        <ItemTemplate> 
                            <div> 
                                <span style="font-weight: bold;">  
                                <asp:Label ID="numberLabel" runat="server" /> 
                                <span style="font-weight: bold;">.&#160;</span> 
                                      
                                              
                                      
                                <asp:HyperLink ID="HyperLink2" runat="server" ForeColor="#0000C0"   
                                                    NavigateUrl='<%# "Ebook.aspx?ID=" + Eval("DocId").ToString() %>'<%#  Eval("Title")%> </asp:HyperLink> 
                                <br /><br /> 
                                                <asp:Image ID="ProductImage" runat="server" Width="2%"   
                                ImageUrl="Image/doc.jpg"   
                                Visible='<%# (Eval("NameFile").ToString().Trim()=="") ? false : true %>'      
                                AlternateText="No preview available" />   
 
                                <span style="font-weight: normal; color: Purple ">  
                                <%# (Eval("ISBN").ToString().Trim()=="") ? "" : "ISBN : " + Eval("ISBN")%> &#160;</span> 
                                  
                            </div> 
                        </ItemTemplate> 
                    </telerik:GridTemplateColumn> 
                </Columns> 
                    <RowIndicatorColumn> 
                        <HeaderStyle Width="20px" /> 
                    </RowIndicatorColumn> 
                    <ExpandCollapseColumn> 
                        <HeaderStyle Width="20px" /> 
                    </ExpandCollapseColumn> 
                </MasterTableView> 
            </telerik:RadGrid> 

3 Answers, 1 is accepted

Sort by
0
Morteza Khataei
Top achievements
Rank 1
answered on 03 Oct 2009, 06:46 AM
Please Answer
0
Morteza Khataei
Top achievements
Rank 1
answered on 05 Oct 2009, 06:50 AM
Please Answer
0
Iana Tsolova
Telerik team
answered on 06 Oct 2009, 01:53 PM
Hi Morteza,

Could you please confirm that there are more enough records in the grid datasource so the grid to show more than one page? Additionally, could you specify what happend when you click the prev and next buttons in the grid pager, do they perform a postback?
Sending your server-side code might help us find the source of the issue.

Kind regards,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Morteza Khataei
Top achievements
Rank 1
Answers by
Morteza Khataei
Top achievements
Rank 1
Iana Tsolova
Telerik team
Share this question
or