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

Can't hide RadDataPager in 2012 Q1

1 Answer 46 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
Jan Hansen
Top achievements
Rank 1
Jan Hansen asked on 17 Feb 2012, 10:54 PM
I just switched from 2011 Q3 to 2012 Q1 (2012.1.215.40) and the datapager on my main search page instantly became visible in both firefox and chrome. It used to be invisible, as I've done this:

<telerik:RadDataPager ID="uiDataPager1" runat="server" PagedControlID="uiSearchResults"
                                PageSize="10"
                                Visible='<%# Container.PageCount != 1%>'
                                >

The control is intended to be hidden when no results are found, i.e. PageCount != 1. This used to work. Now, the datapager is rendered as a gray box with this HTML

<div id="ctl00_MainContent_uiSearchResults_uiDataPager1" class="RadDataPager RadDataPager_Default">
                <input type="hidden" name="ctl00_MainContent_uiSearchResults_uiDataPager1_ClientState" id="ctl00_MainContent_uiSearchResults_uiDataPager1_ClientState" autocomplete="off">
            </div>

I would consider this to be a bug.

Any idea for a workaround until a fix is ready?


Best regards

Jan

1 Answer, 1 is accepted

Sort by
0
Antonio Stoilkov
Telerik team
answered on 22 Feb 2012, 09:28 AM
Hi Jan,

You could resolve your issue by setting the Visible property of the RadDataPager in Page_Load or other appropriate event. I have examined the provided code and was not able to replicate the issue. I have attached the project I used for testing. You could take a look at it and see if there are any differences at your end.

Greetings,
Antonio Stoilkov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
DataPager
Asked by
Jan Hansen
Top achievements
Rank 1
Answers by
Antonio Stoilkov
Telerik team
Share this question
or