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

Pager show top and botom problem Q10

13 Answers 301 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jan Mucha
Top achievements
Rank 1
Jan Mucha asked on 11 Mar 2010, 04:28 PM
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> 

13 Answers, 1 is accepted

Sort by
0
Eliyahu Goldin
Top achievements
Rank 1
answered on 11 Mar 2010, 07:35 PM
I am having the same problem. This is a breaking change. Telerik, can you please post a workaround?
0
Pavel
Telerik team
answered on 12 Mar 2010, 12:26 PM
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.
0
Eliyahu Goldin
Top achievements
Rank 1
answered on 12 Mar 2010, 02:28 PM
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.

0
Jan Mucha
Top achievements
Rank 1
answered on 12 Mar 2010, 02:41 PM
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.
0
Jan Mucha
Top achievements
Rank 1
answered on 15 Mar 2010, 10:42 AM
Hi.
did you reproduce the problem? Do you have some corect solution for me?
0
Pavel
Telerik team
answered on 15 Mar 2010, 01:32 PM
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.
0
Trey
Top achievements
Rank 2
answered on 16 Mar 2010, 04:06 AM
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.

0
Pavel
Telerik team
answered on 16 Mar 2010, 07:35 AM
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.
0
Trey
Top achievements
Rank 2
answered on 16 Mar 2010, 01:20 PM
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. 
0
Solgenia
Top achievements
Rank 1
answered on 18 Mar 2010, 06:35 PM

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

0
Pavel
Telerik team
answered on 19 Mar 2010, 07:56 AM
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.
0
Trey
Top achievements
Rank 2
answered on 01 Apr 2010, 02:18 PM
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?!?
0
Pavel
Telerik team
answered on 06 Apr 2010, 08:12 AM
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.
Tags
Grid
Asked by
Jan Mucha
Top achievements
Rank 1
Answers by
Eliyahu Goldin
Top achievements
Rank 1
Pavel
Telerik team
Jan Mucha
Top achievements
Rank 1
Trey
Top achievements
Rank 2
Solgenia
Top achievements
Rank 1
Share this question
or