Result count not displayed ( after installing new telric/rad wsp) - Rad Grid

4 posts, 0 answers
  1. hemant kumar
    hemant kumar avatar
    5 posts
    Member since:
    Jun 2012

    Posted 29 Apr 2010 Link to this post

    Hi

    In my rad grid I have used the code:-

    <PagerTemplate>
                <asp:Panel ID="PagerPanel" Style="padding: 6px; line-height: 24px" runat="server">
                    <div style="margin: 0px; float: left;">
                        <%# (int)DataBinder.Eval(Container, "Paging.FirstIndexInPage") + 1%>
                        -
                        <%# (int)DataBinder.Eval(Container, "Paging.LastIndexInPage") + 1%>
                        (of
                        <%# DataBinder.Eval(Container, "Paging.DataSourceCount")%>
                        )
                    </div>

                    <div class="rgPagingCont">
                        <div class="rgPagingPanel">
                            <asp:Button ID="btnFirst" runat="server" OnClientClick="changePage('first'); return false;"
                                CommandName="Page" CommandArgument="First" Text="" CssClass="rgPageFirst" />
                            <asp:Button ID="btnPrev" runat="server" OnClientClick="changePage('prev'); return false;"
                                CommandName="Page" CommandArgument="Prev" Text="" CssClass="rgPagePrev" />
                            <div style="position: absolute; top: 0; left: 50px">
                                <asp:Panel runat="server" ID="NumericPagerPlaceHolderDepartment">
                                </asp:Panel>
                                <asp:Button ID="btnNext" runat="server" OnClientClick="changePage('next'); return false;"
                                    CommandName="Page" CommandArgument="Next" Text="" CssClass="rgPageNext" />
                                <asp:Button ID="btnLast" runat="server" OnClientClick="changePage('last'); return false;"
                                    CommandName="Page" CommandArgument="Last" Text="" CssClass="rgPageLast" />
                            </div>
                        </div>
                    </div>
                    <div style="float: right">
                        <span style="margin-right: 3px;">Results per page:</span>
                        <telerik:RadComboBox ID="rcPgSize" DataSource="<%# new object[]{25, 50, 75, 100} %>"
                            Width="65px" SelectedValue='<%# DataBinder.Eval(Container, "Paging.PageSize") %>'
                            runat="server" OnClientSelectedIndexChanged="rcPgSize_SelectedIndexChanged">
                        </telerik:RadComboBox>
                    </div>
                </asp:Panel>
            </PagerTemplate>

    Earlier , even if the result count was lesser then 1 page size , the code kept in bold used to show the no. of results like  1 - 25 (of 52 )

    But after installing new rad wsp, if the result count is less than 1 page, the strip containing result count, pagination and results per page drop down is not rendered.
    If the result count is more than 1 page size , only then this strip is rendered  now.

    Is it a enhancement in latest rad/telrick  wsp, or its a bug which can be solved some way. I have not made any code change.


    Please help.




  2. robertw102
    robertw102 avatar
    265 posts
    Member since:
    Jul 2007

    Posted 29 Apr 2010 Link to this post

    You should set PagerStyle-AlwaysVisible="True" on your RadGrid to have the pager show even when there is only one page to show.

    I hope that helps.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. DAVE HOOKIM
    DAVE HOOKIM avatar
    1 posts
    Member since:
    May 2009

    Posted 30 Apr 2010 Link to this post

    we tried using <PagerStyle AlwaysVisible="true"/>  , but it didn't help.
  5. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 03 May 2010 Link to this post

    Hi guys,

    There was a  problem with the 2010 1 309 version of our controls which prevented this setting from working properly. Please update to our service pack release 2010 1 415 and let us know if the problem persists.

    Greetings,
    Pavel
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top