Hello there,
I have a RadListView displaying data in pages of 4 using the RadDataPager:
| <telerik:RadDataPager ID="UnlocatedCasesPager" |
| runat="server" |
| PagedControlID="UnlocatedCasesListView" |
| PageSize="4"> |
| <Fields> |
| <telerik:RadDataPagerButtonField FieldType="FirstPrev" /> |
| <telerik:RadDataPagerButtonField FieldType="Numeric" PageButtonCount="3" /> |
| <telerik:RadDataPagerButtonField FieldType="NextLast" /> |
| </Fields> |
| </telerik:RadDataPager> |
I cannot work out how to hide the pager when there are 4 or less items being displayed in my list view. I have tried using the FindControl method of the ListView to get hold of the pager and hide it if necessary in various places (OnDataBound event and when I actually assign the datasource of the ListView) but that always returns null. The pager is contained in the <LayoutTemplate>.
Thanks very much, Carl