Hi,
I would like to know if there is a way to display the total page count on pager (with UltraWebGrid i did it with "Pattern" property).I saw the article "Learn to Build a WebDataGrid Custom Pager" but the result is not an Ajax pager and I need an Ajax style pager.
thanks
Mike
Hello Mike,
Thank you for posing in our forums.
I think you mean the below article
http://community.infragistics.com/aspnet/articles/learn-to-build-a-webdatagrid-custom-pager.aspx
In the custom page in the article is included TotalRowCount in the custom control
In the online sample is included totatl page count as per your requirement
http://samples.infragistics.local/aspnet/Samples/WebDataGrid/Display/Paging-Custom-Pager-Template/Default.aspx?cn=data-grid&sid=acdce9cf-19e8-4541-8f2a-84547f056713
In order to function like Ajax the grid is added inside UpdatePanel
Can you please specify what do you mean by "Ajax style pager"?
Hope hearing from you
I am interested in this topic too. I have built a custom pager control in code-behind following the article here:
http://help.infragistics.com/doc/ASPNET/2013.2/CLR4.0/?page=WebDataGrid_Using_Custom_Paging_Template_in_Code.html
However the problem is that the template gets instantiated at the Init/PreInit stage, and the data does not get loaded until OnLoadComplete (following advice from Infragistics support). The paging work, but can't display the PageCount because it doesn't know the number of records at the point where the pager is instantiated.
I tried calling Behaviors.Paging.InstantiateTemplates() after establishing the number of data records, in order to regenerate the custom pager with the reqired info, but the method throws a null pointer exception.
Is there any way to update a pager template after it has been instatntiated?
I am aware of this post ....
http://es.infragistics.com/community/forums/p/30277/162891.aspx#162891
however when I access Behaviors.Paging.PagerTemplateContainerTop it has no controls, no ID, for that matter.
Any ideas?