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

PagerTemplate disappears

1 Answer 34 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ff
Top achievements
Rank 1
ff asked on 16 Jun 2011, 02:25 PM

Hi,

We have recently upgraded the latest telerik version (2011.1.413.40) and it seems we are having some issue. PagerTemplate is getting disappear and comes back when we change the pagesize. I am not sure why it is getting disappear for a short while, it doesn't happen in the older version (2010.2.826.35). I can able to see the same issue in demo page which is mentioned below.

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/pagertemplate/defaultcs.aspx

Please could you let me know whether it is a bug or any code change required to fix this issue.

Thanks

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 22 Jun 2011, 09:54 AM
Hi,

It seems to be a bug in the current version. We will fix this in future. Meanwhile you could override _updatePager function of GridTableView client class to fix this behavior.

Here is the code:

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
 </telerik:RadScriptManager>
 
   <script type="text/javascript">
 
     Telerik.Web.UI.GridTableView.prototype._updatePager = function () {
       var currentPageCount = Math.ceil(this.get_virtualItemCount() / this.get_pageSize());
       this.PageCount = currentPageCount;
 
       var id2 = String.format("{0}PCN", this.get_id());
       var id3 = String.format("{0}FIP", this.get_id());
       var id5 = String.format("{0}DSC", this.get_id());
       var id4 = String.format("{0}LIP", this.get_id());
       var id6 = this._data.pageOfLabelClientID;
 
       this._populatePagerStatsElements(id2, id3, id4, id5, id6);
 
       id2 = String.format("{0}PCNTop", this.get_id());
       id3 = String.format("{0}FIPTop", this.get_id());
       id5 = String.format("{0}DSCTop", this.get_id());
       id4 = String.format("{0}LIPTop", this.get_id());
       id6 = this._data.pageOfLabelTopClientID;
 
       this._populatePagerStatsElements(id2, id3, id4, id5, id6);
 
       this._refreshPagerSlider();
       this._refreshAdvancedPageTextBoxes();
       this._refreshDropDownPager();
 
       this._generateNumericPager();
 
     }
 
 </script>

I hope this helps.

Regards,
Vasil
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
ff
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or