Hi,
I have a pager tamplate and there is a dropdown in it.
some times the dropdown change event is not working.. i have the pager positioned on top and bottom.. when i chane the value in drop down it justs changes the value but not refreshes the grid..
below is my code please help
<PagerTemplate>
<span style="float: left;color:#333333"> Total keywords:
<%# DataBinder.Eval(Container, "Paging.DataSourceCount")%></span>
<div id="pager">
<asp:Panel ID="PagerPanel" runat="server">
<div class="paginationdiv" >
<span style="position:relative;top:-2px;">Display per page</span>
<asp:DropDownList class="select" Width="50px" ID="ddlPageSize" SelectedValue='<%# ((Telerik.Web.UI.GridPagerItem)Container).OwnerTableView.PageSize %>' runat="server" OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
<asp:ListItem Value="25" Text="25"/>
<asp:ListItem Value="50" Text="50"/>
<asp:ListItem Value="100" Text="100"/>
</asp:DropDownList>
</div>
<div class="nextprevious">
<asp:LinkButton ID="btnPrevious" style="float:left;margin-right:10px;margin-left:10px" Text="<< Previous" runat="server" OnClientClick="changePageForReport('prev'); return false;"
CommandName="Page" CommandArgument="Prev" ></asp:LinkButton>
<asp:Panel runat="server" ID="NumericPagerPlaceHolder" CssClass="pagination" > </asp:Panel>
<asp:LinkButton ID="btnNext" Text="Next >>" style="float:left;margin-left:10px" runat="server" OnClientClick="changePageForReport('next'); return false;"
CommandName="Page" CommandArgument="Next" ></asp:LinkButton>
</div>
</div> </asp:Panel>
</PagerTemplate>
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
grdKipKeywords.Rebind();
}
I have a pager tamplate and there is a dropdown in it.
some times the dropdown change event is not working.. i have the pager positioned on top and bottom.. when i chane the value in drop down it justs changes the value but not refreshes the grid..
below is my code please help
<PagerTemplate>
<span style="float: left;color:#333333"> Total keywords:
<%# DataBinder.Eval(Container, "Paging.DataSourceCount")%></span>
<div id="pager">
<asp:Panel ID="PagerPanel" runat="server">
<div class="paginationdiv" >
<span style="position:relative;top:-2px;">Display per page</span>
<asp:DropDownList class="select" Width="50px" ID="ddlPageSize" SelectedValue='<%# ((Telerik.Web.UI.GridPagerItem)Container).OwnerTableView.PageSize %>' runat="server" OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
<asp:ListItem Value="25" Text="25"/>
<asp:ListItem Value="50" Text="50"/>
<asp:ListItem Value="100" Text="100"/>
</asp:DropDownList>
</div>
<div class="nextprevious">
<asp:LinkButton ID="btnPrevious" style="float:left;margin-right:10px;margin-left:10px" Text="<< Previous" runat="server" OnClientClick="changePageForReport('prev'); return false;"
CommandName="Page" CommandArgument="Prev" ></asp:LinkButton>
<asp:Panel runat="server" ID="NumericPagerPlaceHolder" CssClass="pagination" > </asp:Panel>
<asp:LinkButton ID="btnNext" Text="Next >>" style="float:left;margin-left:10px" runat="server" OnClientClick="changePageForReport('next'); return false;"
CommandName="Page" CommandArgument="Next" ></asp:LinkButton>
</div>
</div> </asp:Panel>
</PagerTemplate>
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
grdKipKeywords.Rebind();
}