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

Buttons in pagerTemplate

3 Answers 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anjali
Top achievements
Rank 1
Anjali asked on 12 Jul 2011, 06:58 PM
Hi All,

  I have few buttons on my pager template. The buttons disappear when the last record is left. I want  those buttons to appear if I am on the last record. below is my code. i want the Update Record Button and Save Record button on the pager item. How can i achieve this.
<PagerTemplate>
                <table border="0" cellpadding="0" cellspacing="0" style="height: 20px" width="540px">
       <tr >
         <td style="width:10%" >
          
           <asp:ImageButton ID="btnFirst" runat="server" ImageUrl="~/images/PagingFirst.gif" AlternateText="First" CommandName="Page" CommandArgument="First" />
         </td>
         <td style="width:10%">
        
           <asp:ImageButton ID="btnPrev" runat="server" ImageUrl="~/images/PagingPrev.gif" CommandName="Page" CommandArgument="Prev" />
         </td>
         <td style="width:10%">
    
           <asp:ImageButton ID="imgNext" runat="server" ImageUrl="~/images/PagingNext.gif" CommandName="Page" CommandArgument="Next" />
         </td>
         <td style="width:10%">
         
           <asp:ImageButton ID="imgLast" runat="server" ImageUrl="~/images/PagingLast.gif" CommandName="Page" CommandArgument="Last" />
         </td>
              <td style="width:35%"  >
               <asp:Button ID="Btn_UpdateRecord" runat="server" Text="Update Record" OnClick="Btn_UpdateRecord_Click" />
           </td>
                <td  >
               <asp:Button ID="Btn_FinalizeRecord" runat="server" Text="Save Record" OnClick="Btn_FinalizeRecord_Click" />
           </td>
       </tr>
     </table>
   </PagerTemplate>

Thanks for all the help.

3 Answers, 1 is accepted

Sort by
0
Anjali
Top achievements
Rank 1
answered on 13 Jul 2011, 10:37 PM
I really need help with this. can someone provide me with some helpfull tips.

Thanks.
0
Accepted
Princy
Top achievements
Rank 2
answered on 14 Jul 2011, 06:39 AM
Hello Anjali,

I cannot reproduce the issue at my end. Make sure that you have set  PagerStyle-AlwaysVisible as true.

aspx:
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="true" DataSourceID="SqlDataSource1">
  <PagerStyle  AlwaysVisible="true"/>
</telerik:RadGrid>

Thanks,
Princy.
0
Anjali
Top achievements
Rank 1
answered on 14 Jul 2011, 05:30 PM
Thanks Princy!!
I was stuck with this problem and I didn't know the solution is so simple.

It worked right away as soon as I put the

<PagerStyle  AlwaysVisible="true"/>

Thanks again for all your help!!
Tags
Grid
Asked by
Anjali
Top achievements
Rank 1
Answers by
Anjali
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or