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

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

3 Answers 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
hemant kumar
Top achievements
Rank 1
hemant kumar asked on 29 Apr 2010, 12:41 PM
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.




3 Answers, 1 is accepted

Sort by
0
robertw102
Top achievements
Rank 1
answered on 29 Apr 2010, 02:21 PM
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.
0
DAVE HOOKIM
Top achievements
Rank 1
answered on 30 Apr 2010, 06:46 AM
we tried using <PagerStyle AlwaysVisible="true"/>  , but it didn't help.
0
Pavel
Telerik team
answered on 03 May 2010, 02:07 PM
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.
Tags
Grid
Asked by
hemant kumar
Top achievements
Rank 1
Answers by
robertw102
Top achievements
Rank 1
DAVE HOOKIM
Top achievements
Rank 1
Pavel
Telerik team
Share this question
or