Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

DataPager - hide previous button (image type) when needed

Posted on 2009-02-13
2
Medium Priority
?
1,210 Views
Last Modified: 2012-05-06
I am using a data pager with next previous pager fields (as images).  When the previous button is not a valid option, I would like it to be more visibly apparent.  For example, swapping out the image for a "grayed out" version, or simply just hiding the previous button.  How can I accomplish this?
<asp:DataPager ID="pgProducts" runat="server" PagedControlID="lvProducts" PageSize="3">
                        <Fields>
                            <asp:NextPreviousPagerField ButtonType="Image"  
                                NextPageImageUrl="/images/more.gif" 
                                PreviousPageImageUrl="/images/back.gif" />
                        </Fields>
                    </asp:DataPager>

Open in new window

0
Comment
Question by:centdevs
2 Comments
 
LVL 11

Accepted Solution

by:
jmwheeler earned 2000 total points
ID: 23633514
There is a property on the NextPreviousPagerField called RenderDisabledButtonsAsLabels, you can set that to true.  You could then use CSS to modify the label as necessary.
0
 

Author Comment

by:centdevs
ID: 23633538
Wonderful that worked, thank you!!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Loops Section Overview
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month21 days, 1 hour left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question