Pager show top and botom problem Q10

14 posts, 0 answers
  1. Jan Mucha
    Jan Mucha avatar
    25 posts
    Member since:
    Aug 2012

    Posted 11 Mar 2010 Link to this post

    Hi i have problem with pager. My pager show top and bottom after postBack or AjaxPostBack or my pagerSetting is AlwaysVisible="true" Position="Bottom". First loaded is correct. Same problem is in RadTab when OnClienttab send ajaxrequest for update visible grid.

      <telerik:RadGrid ID="GridKenticoUser" runat="server" EnableDragToSelectRows="True" 
            AllowFilteringByColumn="false" AllowSorting="True" AutoGenerateColumns="false" 
            AllowMultiRowSelection="True" PageSize="500" Width="99%" OnNeedDataSource="GridKenticoUser_NeedDataSource" 
            OnItemCommand="GridKenticoUser_ItemCommand"
            <MasterTableView Width="100%" AllowPaging="true" DataKeyNames="UzivatelID, LektorID, Uzivatel"  PagerStyle-Position="Bottom"
                <HeaderStyle HorizontalAlign="Left" /> 
                <ItemStyle HorizontalAlign="Left" /> 
                <AlternatingItemStyle HorizontalAlign="Left" /> 
                <PagerStyle AlwaysVisible="true" Position="Bottom" /> 
                <Columns> 
                    <telerik:GridClientSelectColumn> 
                        <HeaderStyle Width="35" /> 
                    </telerik:GridClientSelectColumn> 
                    <telerik:GridBoundColumn DataField="Uzivatel" HeaderText="Uživatel" AutoPostBackOnFilter="true" 
                        AllowFiltering="false" ShowFilterIcon="false" FilterControlWidth="100%" CurrentFilterFunction="Contains"
                        <HeaderStyle Width="150" /> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridDateTimeColumn DataField="Zalozen" HeaderText="Založen" AutoPostBackOnFilter="true" 
                        AllowFiltering="false" ShowFilterIcon="false" FilterControlWidth="100%" CurrentFilterFunction="Contains" 
                        DataFormatString="{0:dd.MM.yy}"
                        <HeaderStyle Width="60" /> 
                    </telerik:GridDateTimeColumn> 
                    <telerik:GridBoundColumn DataField="LektorFullName" HeaderText="Lektor" AutoPostBackOnFilter="true" 
                        AllowFiltering="false" ShowFilterIcon="false" FilterControlWidth="100%" CurrentFilterFunction="Contains"
                        <HeaderStyle Width="150" /> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Akce"
                        <ItemTemplate> 
                            <div style="padding-left: 10px;"
                                <asp:ImageButton runat="server" ID="BtnParuj" CommandName="Paruj" ImageUrl="~/App_Themes/GopasRed/Images/16x16/ok.png" 
                                    Visible='<%# (String.IsNullOrEmpty(Eval("LektorID").ToString()))?true:false %>' 
                                    ToolTip="Zpárovat" />&nbsp; 
                                <asp:ImageButton runat="server" ID="ImageButton1" CommandName="OdParuj" ImageUrl="~/App_Themes/GopasRed/Images/16x16/cancel.png" 
                                    Visible='<%# (!String.IsNullOrEmpty(Eval("LektorID").ToString()))?true:false %>' 
                                    ToolTip="Zrušit párování" /> 
                            </div> 
                        </ItemTemplate> 
                    </telerik:GridTemplateColumn> 
                    <telerik:GridTemplateColumn AllowFiltering="false"
                    </telerik:GridTemplateColumn> 
                </Columns> 
            </MasterTableView> 
            <ClientSettings> 
                <ClientEvents /> 
                <Scrolling AllowScroll="True" UseStaticHeaders="true" SaveScrollPosition="True" ScrollHeight="390" /> 
                <Selecting AllowRowSelect="true" /> 
            </ClientSettings> 
            <GroupingSettings CaseSensitive="false" /> 
        </telerik:RadGrid> 

  2. Eliyahu Goldin
    Eliyahu Goldin avatar
    85 posts
    Member since:
    Apr 2007

    Posted 11 Mar 2010 Link to this post

    I am having the same problem. This is a breaking change. Telerik, can you please post a workaround?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 12 Mar 2010 Link to this post

    Hi guys,

    I am not able to reproduce the described problem. You can find attached to this message a simple test page which is working as expected on my end. Give it a try and let me know how to modify it in order to reproduce the issue.

    All the best,
    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.
  5. Eliyahu Goldin
    Eliyahu Goldin avatar
    85 posts
    Member since:
    Apr 2007

    Posted 12 Mar 2010 Link to this post

    I made my own workaround. I have all my grids inherited from the same parent, so I did this in the parent:

            protected override void OnItemCreated(GridItemEventArgs e) 
            { 
                base.OnItemCreated(e); 
    ... 
                switch (e.Item.ItemType) 
                { 
    ... 
                    case GridItemType.Pager: 
                        // Need a work-around for a problem that appeared in telerik 2010 Q1: 
                        // Paging item is created twice, first time if renders at the top, another time at the bottom 
                        // although I have setting this.MasterTableView.PagerStyle.Position = GridPagerPosition.Bottom; 
                        // Since I need to render at the bottom only, I need to skip the first time and proceed 
                        // with the seconde time. 
                        // I should be careful to watch next telerik releases since they may fix or change this behaviour. 
                        if (this.ID != this.previousGridIdForPaging) 
                        { 
                            // this is the first paging item for this grid, skip it, we will render the next one 
                            e.Item.Visible = false
                            this.previousGridIdForPaging = this.ID; 
                            break
                        } 
    ... 
                        break
                } 
            } 
            private string previousGridIdForPaging; 
     
     

    With this, all my grids show only the bottom pager item.

    Before the 2010 Q1 release, there was no any problem with paging.

    I hope the work-around will help telerik to pinpoint the problem.

  6. Jan Mucha
    Jan Mucha avatar
    25 posts
    Member since:
    Aug 2012

    Posted 12 Mar 2010 Link to this post

    Hi this problem is in this code: pageSize="500". Please change value pageSize and add asp:Button for postback. After postback the top pager is shown.
  7. Jan Mucha
    Jan Mucha avatar
    25 posts
    Member since:
    Aug 2012

    Posted 15 Mar 2010 Link to this post

    Hi.
    did you reproduce the problem? Do you have some corect solution for me?
  8. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 15 Mar 2010 Link to this post

    Hello guys,

    We were able to reproduce the problem and our developers already fixed it. You can check the next internal build for a fix.

    Best wishes,
    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.
  9. Trey
    Trey avatar
    35 posts
    Member since:
    Dec 2006

    Posted 15 Mar 2010 Link to this post

    Nope, not fixed. Now both column headers AND my pagers vanish. Very disappointed with the quality of this realest, went from a 10 to..well much lower. :-) Cheer up drink a beer and fix it guys.

  10. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 16 Mar 2010 Link to this post

    Hi Trey,

    The currently uploaded internal build is from the 12th of March. The issue was fixed on the 15th so the fix is not included in the build you've downloaded. Please check the next build when it is uploaded (probably within a few days at most).

    Best wishes,
    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.
  11. Trey
    Trey avatar
    35 posts
    Member since:
    Dec 2006

    Posted 16 Mar 2010 Link to this post

    Great, well at least it has been caught.  This was was bad all over, you missed it, I missed it, it went live.  Thanks for the speedy response, as always a pleasure. 
  12. Solgenia
    Solgenia avatar
    11 posts
    Member since:
    Sep 2009

    Posted 18 Mar 2010 Link to this post

    Hi there, I just downloaded the 316 internal build and the problem is still unsolved, even if mine is slightly different.

    I have AlwaysVisible="true" and Position="Bottom" and the first time the grid loads it does not show the pager.
    In case of a postback the pager is shown, but on top, not on bottom. The grid is contained within a multipage.
    Right now I am handling the OnItemCreated event, hiding the top pager, but this is not a clean solution.
    Can you confirm the 316 build should fix the issue?
    Thanks

  13. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 19 Mar 2010 Link to this post

    Hi Ermanno,

    Indeed the 316 build includes the fix. Could you please ensure you are setting the AlwaysVisible property for the MasterTableView like this:
    <MasterTableView>
        <PagerStyle Position="Bottom" AlwaysVisible="true"  />
    </MasterTableView>


    All the best,
    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.
  14. Trey
    Trey avatar
    35 posts
    Member since:
    Dec 2006

    Posted 01 Apr 2010 Link to this post

    So far it has not fixed my issues at all, in fact it has added.  Now my pager is not visible, and the first column's header is blank until post back!

    I will posy my grid ASAP, but to let you know:

    My page has a radajaxpane, inside that there is a splitter, inside that we have the grid (in the left pane)

    This might be part of some other issue.  My splitter button looks all screwed up now, and the skins do not seem to apply to the controls.

    Has anyone seen anything like this?!?
  15. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 06 Apr 2010 Link to this post

    Hi Trey,

    Could you paste some of your relevant markup/code, so we can get a better idea of your scenario?

    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
UI for ASP.NET Ajax is Ready for VS 2017