The page tabs show up on the datapager, and only the first 10 items are shown. When I click on one of the page numbers though, a) the results don't change; b) the new page number is not highlighted (when I click a second time, it is highlighted however but the results still don't change).
Any help would be much appreciated.
My aspx markup:
My code for clicking the submit button:
Any help would be much appreciated.
My aspx markup:
<table border="0" cellspacing="0" cellpadding="4"> <tr> <td> <telerik:RadTextBox ID="txtInstitutionName" runat="server" Columns="30" /><asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtInstitutionName" runat="server" ErrorMessage="*" /> </td> <td> <asp:Button ID="btnSearch" runat="server" Text="Search" /> </td> </tr></table><telerik:RadListView ID="listInstitutions" runat="server" AllowPaging="true"> <ItemTemplate> <li> <%# Eval("InstitutionName") %></li> </ItemTemplate> <EmptyDataTemplate> No financial institution was found.</EmptyDataTemplate> <LayoutTemplate> <ul> <li id="itemPlaceholder" runat="server" /> </ul> <telerik:RadDataPager ID="RadDataPager1" runat="server" PagedControlID="listInstitutions" PageSize="10" > <Fields> <telerik:RadDataPagerButtonField FieldType="Numeric" /> </Fields> </telerik:RadDataPager> </LayoutTemplate></telerik:RadListView>My code for clicking the submit button:
InstitutionContext = New ProjectTobyEntities()Dim institutionQuery As ObjectQuery(Of Institution) = _ From i In InstitutionContext.Institutions _ Where i.InstitutionName.Contains(txtInstitutionName.Text) And i.Active = True Select ilistInstitutions.DataSource = CType(institutionQuery, ObjectQuery).Execute(MergeOption.NoTracking)listInstitutions.DataBind()